the-honk/coursework/gcse computer science/year 9/python/python challenges/20 - Guess 7.py
2024-10-09 18:02:29 +01:00

11 lines
No EOL
183 B
Python

def guess():
num = int(input('Please input a number.'))
if num == 7:
print('Well done!')
exit()
else:
print('Try again!')
guess()
guess()