generated from nyu-software-engineering/python-package-exercise
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__main__.py
59 lines (50 loc) · 1.44 KB
/
__main__.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from rice import riceinfo
from rice import Pun
def main():
riceinfo.print_riceball("happy")
print()
riceinfo.print_riceball("sad")
print()
riceinfo.print_riceball("angry")
print()
riceinfo.print_riceball("nervous")
print()
riceinfo.print_riceball("confused")
print()
print("Rice pun part:")
print()
shortpun = riceinfo.tellPun(Pun.SHORT)
print("short pun:", shortpun)
print()
mediumpun = riceinfo.tellPun(Pun.MEDIUM)
print("medium pun:", mediumpun)
print()
longpun = riceinfo.tellPun(Pun.LONG)
print("long pun:", longpun)
print()
dadpun = riceinfo.tellPun(Pun.DAD)
print("Dad pun:", dadpun)
print()
ryhmepun = riceinfo.tellPun(Pun.RHYME)
print("ryhme pun:",ryhmepun)
print()
print("Rice hsitory part:")
print()
print("1st century ->", riceinfo.history(1))
print("5th century ->", riceinfo.history(5))
print("10th century ->", riceinfo.history(10))
print("15th century ->", riceinfo.history(15))
print("21th century ->", riceinfo.history(21))
print("22th century ->", riceinfo.history(22))
print("Rice country part:")
brazil = riceinfo.riceCountry("brazil")
print(brazil)
print()
egypt = riceinfo.riceCountry("Egypt")
print(egypt)
print()
print(riceinfo.riceCountry("Mexico"))
print()
print(riceinfo.riceCountry("Russia"))
if __name__ == '__main__':
main()