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 ():
num 1= eval (input("what is the first number?"))
num 2= eval (input("what is the second number?"))
num 3= eval (input("what is the third number?"))
num 4= eval (input("what is the fourth number?"))
num 5= eval (input("what is the fifth number?"))
sum = num 1+ num 2+ num 3+ num 4+ num 5
average = sum /5 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!