Skip to content

Instantly share code, notes, and snippets.

@akreer135
Created January 14, 2014 19:39
Show Gist options
  • Save akreer135/8424345 to your computer and use it in GitHub Desktop.
Save akreer135/8424345 to your computer and use it in GitHub Desktop.
the magical script that prints the lines to songs.
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