Aucune description

parrot.py 260B

123456789101112
  1. prompt = "\nTell me something, and I will repeat it back to you:"
  2. prompt += "\nEnter 'quit' to end the program. "
  3. active = True
  4. while active:
  5. message = input(prompt)
  6. if message == 'quit':
  7. active = False
  8. else:
  9. print(message)