-
Notifications
You must be signed in to change notification settings - Fork 0
/
ccc_2007_J2.py
38 lines (34 loc) · 918 Bytes
/
ccc_2007_J2.py
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
31
32
33
34
35
36
37
38
qui = True
words = []
while qui:
k = input("")
if k == "TTYL":
qui = False
words.append(k)
for i in range(len(words)):
if words[i] == "CU":
print("see you")
elif words[i] == ":-)":
print("I'm happy")
elif words[i] == ":-(":
print("I'm unhappy")
elif words[i] == ";-)":
print("wink")
elif words[i] == ":-P":
print("stick out my tongue")
elif words[i] == "(~.~)":
print("sleepy")
elif words[i] == "TA":
print("totally awesome")
elif words[i] == "CCC":
print("Canadian Computing Competition")
elif words[i] == "CUZ":
print("because")
elif words[i] == "TY":
print("thank-you")
elif words[i] == "YW":
print("you're welcome")
elif words[i] == "TTYL":
print("talk to you later")
else:
print(words[i])