Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GNU nano 2.4.2 File: kek.py
- import math
- import random
- import time
- def hue():
- global cislo
- cislo=random.randrange(0,10000)
- return(cislo)
- pokus = 0
- while True:
- numbah = input("What number would you like to find between 0-10000? ")
- if(numbah > 10000):
- print("What number would you like to find between 0-10000? ")
- else:
- break
- while True:
- hue()
- pokus += 1
- print("Current number of tries: %d" % pokus)
- print(cislo)
- time.sleep(0.00001)
- if(cislo == numbah):
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement