Question: # Setup intitial conditions total_sum = 0 num_count = 5 for i in range(5): num = float(input(fEnter number {i+1}: )) total_sum += num # Calculate
# Setup intitial conditions total_sum = 0 num_count = 5 for i in range(5): num = float(input(f"Enter number {i+1}: ")) total_sum += num # Calculate the average average = total_sum / num_count # Display the sum and average to the user print(f"The Sum: {total_sum}") print(f"The Average: {average}")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
