Question: #new program sum and average #this program takes 5 inputs from the user and calculates the sum of 5 numbers, and the average of the

#new program sum and average
#this program takes 5 inputs from the user and calculates the sum of 5 numbers, and the average of the numbers
#by Mara Caminero
def main ():
number 1= eval (input("what is the first number?"))
number 2= eval (input("what is the second number?"))
number 3= eval (input("what is the third number?"))
number 4= eval (input("what is the fourth number?"))
number 5= eval (input("what is the fifth number?"))
sum = number 1+ number 2+ number 3+ number 4+ number 5
average = sum /5
print("The sum of the numbers is", round(sum,2))
print("The average of the numbers is", round(average,2) what is the error, this is pycharm

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

Students Have Also Explored These Related Databases Questions!