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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock