Guest User

Untitled

a guest
Feb 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. import random
  2. mylist = []
  3. for i in range(10):
  4. x = random.randint(1,50)
  5. mylist.append(x)
  6. #print(mylist) to check
  7. t = int(input("Enter a value : ")
  8. print(mylist.count(t))
Add Comment
Please, Sign In to add comment