python/Gamertag.py

16 lines
553 B
Python
Raw Normal View History

2024-03-17 14:35:17 -04:00
player_gamertag = input("Please enter your gamer tag: ")
awnser = input(f"So your gamer tag is {player_gamertag}? (yes/no) ")
while awnser.lower() not in ['yes', 'no']:
print("Sorry, I only accept 'yes' or 'no' as an answer.")
awnser = input("Please enter 'yes' or 'no': ")
2024-03-11 20:05:37 -04:00
2024-03-17 14:35:17 -04:00
if awnser.lower() == 'yes':
print("Great, then let's begin")
elif awnser.lower() == 'no':
print("Oh, okay. Let's try again.")
2024-03-11 20:05:37 -04:00
player_gamertag = input("Please enter your gamer tag: ")
else:
2024-03-17 14:35:17 -04:00
print("Sorry, I only accept 'yes' or 'no' as an answer.")
2024-03-11 20:05:37 -04:00