daniil-vlasenko

13.10.1

Aug 21st, 2019
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import randrange as rnd
  2. a = []
  3. for i in range(10):
  4. a.append(rnd(10))
  5. print(a)
  6. s = 0
  7. for i in range(10):
  8. s += a[i]
  9. print(s)
  10. s = 0
  11. for x in a:
  12. s += x
  13. print(s)
RAW Paste Data