the-honk/school/gcse/year 9/python challenges/20 - Guess 7.py

11 lines
183 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
def guess():
num = int(input('Please input a number.'))
if num == 7:
print('Well done!')
exit()
else:
print('Try again!')
guess()
guess()