-
Notifications
You must be signed in to change notification settings - Fork 0
/
hw1.py
114 lines (92 loc) · 2.45 KB
/
hw1.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#MASTER FUNCTION
def song():
#none -> none
#colors go here
verse1()
print ""
verse2()
verse3()
verse4()
verse5()
verse6()
verse7()
verse8()
verse9()
#VERSE FUNCTIONS
def verse1():
print "I like you, Fred, I like you!"
print "You're just saying those words to be kind."
print "No, I mean it. I like... I mean I love you, Fred!"
print "He is out of his medieval mind!"
print "I'm perfectly sane and sound! I never felt better in my life!"
print "Everybody... everybody, everybody! Come on! And meet my incipient wife!"
def verse2():
yellow()
print "My reasons must be clear."
print "When she shows you all how strong she is you'll stand right up and cheer!"
redBlue()
def verse3():
yellow()
print "She drinks just like a lord!"
print "So sing a merry drinking song and let the wine be poured!"
orange()
def verse4():
yellow()
print "She sings just like a bird!"
print "You\'ll be left completely speechless when her gentle voice is heard!"
green()
def verse5():
yellow()
print "She wrestles like a Greek!"
print "You will clap your hands in wonder at her fabulous technique!"
magenta()
def verse6():
yellow()
print "She dances with such grace!"
print "You are bound to sing her praises \'til you're purple in the face!"
darkPurple()
def verse7():
yellow()
print "She\'s musical to boot!"
print "She will set your feet a-tapping when she plays upon her lute!"
darkGreen()
def verse8():
yellow()
print "A clever, clownish wit!"
print "When she does her funny pantomime your sides are sure to split!"
print "Ha ha ha ha, ho ho ho ho, ha ha ha ha ho!"
darkGreen()
def verse9():
print "I\'m in love with a girl."
print "He\'s in love with a girl named \"F-R-E-D\" Fred!"
#COLOR FUNCTIONS
def yellow():
#none -> none
print "I\'m in love with a girl named Fred."
def redBlue():
#none -> none
print "With a \"F\" and a \"R\" and an \"E\" and a \"D\""
print "And a \"F-R-E-D\" Fred! Yeah!"
print ""
def green():
#none -> none
print "La la la la, la la la la, la la la la la!"
orange()
def magenta():
#none -> none
print "Clap clap, clap clap, clap clap clap clap, clap, clap clap!"
green()
def orange():
#none -> none
print "Fill the bowl to overflowing. Raise the goblet high!"
redBlue();
def darkGreen():
#none -> none
print "Strum strum, strum strum, strum strum strum strum strum, strum."
darkPurple()
def darkPurple():
#none -> none
print "Bravo! Bravo! Bravissimo bravo! Bravissimo!"
magenta()
song()
#function call