Created
January 14, 2014 19:39
-
-
Save akreer135/8424345 to your computer and use it in GitHub Desktop.
the magical script that prints the lines to songs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Song(object): | |
def __init__(self, lyrics): | |
self.lyrics = lyrics | |
def sing_me_a_song(self): | |
for line in self.lyrics: | |
print line | |
pop_it = Song(["Pop it", | |
"Lock it", | |
"Drop it low", | |
"Let me see you hit the flo"]) | |
the_assumption_song = Song(["There once was a farmer who lived on a rock", | |
"He sat in the meadow just shaking his fist at some boys who were down by the creek", | |
"Their feet in the water, their hands on their marbles and playthings and at half past four.", | |
"There came a young lady and she look like a pancake."]) | |
pop_it.sing_me_a_song() | |
the_assumption_song.sing_me_a_song() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment