12 lines
No EOL
253 B
Python
12 lines
No EOL
253 B
Python
import random
|
|
|
|
num = random.randint(1, 100)
|
|
|
|
for i in range(5):
|
|
guess = input('guess the number')
|
|
if guess == num:
|
|
print('congratualtions you guessed correctly')
|
|
break
|
|
else:
|
|
print('incorrect guess try again')
|
|
|