Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- a = random.randrange(100)
- stevec = 0
- while True:
- stevilo = int(input("VInput number:"))
- if stevilo < a:
- print("Vaše število je manjše")
- stevec += 1
- elif stevilo > a:
- print("Vaše Število je manjše")
- stevec +=1
- else:
- print("Vaše število je pravilno, ugotovile ste v", stevec, "Poskusu")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement