Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- nr = random.randint(0, 10)
- x = 500
- pas = 500
- X = 10
- gh = 0
- while x != nr and gh < X:
- x = int(input("guess"))
- gh = gh + 1
- if x < nr:
- print("mai mare")
- elif x > nr:
- print("mai mic")
- else:
- break
- if x == nr:
- print("Ai ghicit")
- else:
- print("Prea multe guessuri")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement