Curso_Intensivo_de_PYTHON/chapter_07/parrot.py
2023-06-02 17:22:53 +02:00

11 lines
258 B
Python

prompt = "\nTell me something, and I will repeat it back to you:"
prompt += "\nEnter 'quit' to end the program. "
active = True
while active:
message = input(prompt)
if message == 'quit':
active = False
else:
print(message)