#Write a program to sum a series of numbers entered by the user.
#The program should first prompt the use for how many numbers are to be summer.
#It should then input each of the numbers and print a total sum.
def main():
total = 0
num = eval(input("How many numbers do you have? "))
for i in range (num):
ber = eval(input("What is your first number? "))
total = ber + total
print("The total value of your ", num, "numbers is ", total)
main()
Advertisement