Advertisement
Guest User

sdfsdfsdf

a guest
Jun 25th, 2017
4,155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import random
  2.  
  3. for i in range(101):
  4.     numb = random.randint(0, 100)
  5.     print(numb)
  6.     if numb == 53:
  7.         break
  8.  
  9. if numb != 53 and i == 100:
  10.     print("We didn't find nuthin'")
  11. else: print("Found it in", i, "tries.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement