SHARE
TWEET

13.10.2

daniil-vlasenko Aug 21st, 2019 76 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. print(sum(a)//i+1)
  7. s = 0
  8. for i in range(10):
  9.     s += a[i]
  10. print(s//i+1)
  11. s = 0
  12. for x in a:
  13.     s += x
  14. print(s//i+1)
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