This commit is contained in:
adamercat 2020-12-09 13:04:53 +01:00
parent b11622a471
commit d95ff545bc
3 changed files with 25 additions and 2 deletions

0
16-dead-fun.py Normal file
View File

View File

@ -1 +1,19 @@
"""clean_input"""
"""clean_input"""
#message needs to be a string that is printed for user instruction. options is a list of viable inputs
def io(message: str, options: list) -> str:
while True:
try:
i = str(input(message))
except (ValueError, NameError):
print("Eingabe nicht gültig, bitte wiederhole deine Eingabe.")
if i in options:
return i
break
else:
print('Noch nicht ganz richtig. Hast du deine Auswahl auch richtig geschrieben?')

View File

@ -1 +1,6 @@
"""game"""
"""game"""
<<<<<<< HEAD
=======
"this a test string"
>>>>>>> 24652a721a76c0cced661a371e8b624bab716262