python sum of 10 numbers from user input

Solutions on MaxInterview for python sum of 10 numbers from user input by the best coders in the world

showing results for - "python sum of 10 numbers from user input"
Cale
08 Apr 2019
1a_list = []
2print("Please enter 10 numbers with or without decimals\n")
3
4for num in range(10):
5    list_num = float(input("Enter a number:"))
6    a_list.append(list_num)
7print(sum(a_list))
8