16 lines
261 B
Python
16 lines
261 B
Python
|
secret_number = 9
|
||
|
|
||
|
guess_count = 0
|
||
|
guess_limit = 3
|
||
|
|
||
|
while guess_count < guess_limit :
|
||
|
guess= int(input('Guess: '))
|
||
|
guess_count+=1
|
||
|
if guess == secret_number:
|
||
|
print('You won !')
|
||
|
break
|
||
|
|
||
|
else:
|
||
|
print('Sorry you guessed all wrong !')
|
||
|
|