Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Song():
- def __init__(self, lyrics):
- self.lyrics = lyrics
- def sing_me_a_song(self):
- for line in self.lyrics:
- print (line)
- def split_that_shit(self):
- new_text = self.lyrics
- new_text = new_text.split()
- print (new_text)
- 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 tha family" +
- "With pockets full of shells")
- a = Song
- a.split_that_shit(bulls_on_parade)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement