0

A python program

Write a Python program that asks the user to enter three numbers (use three separate input statements). Create variables called total and average that hold the sum and average of the three numbers and print out the values of total and average.

22nd May 2020, 11:16 AM
Elizabeth Makinde
5 Answers
+ 4
Remove all ">>>" from the code, and put the missing quote at line ... for number c:". Then the code will run as expected.
22nd May 2020, 2:15 PM
Lothar
Lothar - avatar
+ 1
Thank you
22nd May 2020, 11:26 AM
Elizabeth Makinde
0
Sorry about that >>>a=eval(input("please enter a number for a:")) >>>b=eval(input ("please enter a number for b:")) >>>c=eval(input ("please enter a number for c:)) total= a+b+c print ("the total of the numbers is",(total)) average= total /3 print ("the average of the numbers is",(average ,3))
22nd May 2020, 11:22 AM
Elizabeth Makinde