Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- le = int(input("How many numbers:"))
- l = []
- for i in range(le):
- num = int(input("Enter a number:"))
- l.append(num)
- total = 0
- for i in l:
- total += i
- print("The total is " + str(total))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement