SHARE
TWEET

13.10.1

daniil-vlasenko Aug 21st, 2019 74 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top