Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- n = int(input())
- sum = 0
- a = []
- while n > 0:
- num = random.randint(1,10)
- x = int(input())
- a.append(x)
- for i, x in enumerate(a):
- print(f'{i}.{x}')
- sum += x
- print(sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement