-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparrot.py
More file actions
30 lines (24 loc) · 805 Bytes
/
parrot.py
File metadata and controls
30 lines (24 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# message = input("Tell me something, and I will repeat it back to you: ")
# print(message)
# prompt = "\nTell me something, and I will repeat it back to you:"
# prompt += "\nEnter 'quit' to end the program. "
# message = ""
# while message != 'quit':
# message = input(prompt)
# print(message)
# prompt = "\nTell me something, and I will repeat it back to you:"
# prompt += "\nEnter 'quit' to end the program. "
# message = ""
# while message != 'quit':
# message = input(prompt)
# if message != 'quit':
# print(message)
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)