TDT4109/Exercise 4 - Inspera/15.py

5 lines
130 B
Python

def spam_with_questions(question) -> str:
while True:
answer = input(question).lower()
if answer == 'stopp':
break