the-honk/gcse computer science/year 9/python challenges/9 - Olympics.py

11 lines
255 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
def ask():
inp = str.lower(input('Please input an olympic value.'))
if (inp == 'respect') | (inp == 'excellence') | (inp == 'friendship'):
print('That\'s correct!')
exit()
else:
print('Try again!')
ask()
ask()