a guest Feb 16th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random
  2. score=[]
  3. tens=0
  4. for a in range(0,30):
  5.     score.append(random.randint(0,10))
  6. for g in score:
  7.     if g==10:
  8.         tens+=1
  9. print(score)
  10. print("{0} learners got top marks".format(tens))
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