-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrolling_ex.py
More file actions
36 lines (24 loc) · 858 Bytes
/
rolling_ex.py
File metadata and controls
36 lines (24 loc) · 858 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
31
32
33
34
35
class Song(object):
def __init__(self,lyrics):
self.lyrics = lyrics
def sing_me_a_song(self):
for line in self.lyrics:
print(line)
happy_bday = Song(["Happy birthday to you",
"I don't want to get sued",
"So I'll stop right there."])
bulls_on_parade = Song(["They rally around the family",
"With pockets full of shells"])
white_riot = Song(["Black man gotta lot a problems",
"But they don't mind throwin a brick",
"White people go to school",
"Where they teach you how ta be thick"])
lyrics = Song(["Black man gotta lot a problems",
"But they don't mind throwin a brick",
"White people go to school",
"Where they teach you how ta be thick"])
wight_riot = lyrics
happy_bday.sing_me_a_song()
bulls_on_parade.sing_me_a_song()
white_riot.sing_me_a_song()
wight_riot.sing_me_a_song()