To find average number in python programming.

# Get three test score
round1 = int(input("Enter score for round 1: "))

round2 = int(input("\nEnter score for round 2: "))

round3 = int(input("\nEnter score for round 3: "))
   
# Calculate the average
average = (round1 + round2 + round3) / 3

# Print out the test score
print("\nThe average score is: ", average)



Output:
4
37
64
Enter score for round 1: 
Enter score for round 2: 
Enter score for round 3: 
The average score is:  35.0

Comments

Popular posts from this blog

program that reads two numbers and an arithmetic operator and displays the computed result.

program to find the multiples of a number ( the divisor) out of given five numbers.