Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- for i in range(101):
- numb = random.randint(0, 100)
- print(numb)
- if numb == 53:
- break
- if numb != 53 and i == 100:
- print("We didn't find nuthin'")
- else: print("Found it in", i, "tries.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement