title: Learning Python the Hard Way ex40, don't understand Study Drill 2
body: <p><a href="http://learnpythonthehardway.org/book/ex40.html" rel="nofollow">http://learnpythonthehardway.org/book/ex40.html</a></p>
  
  <blockquote>
    <p>Put the lyrics in a separate variable, then pass that variable to the class to use instead.</p>
  </blockquote>
  
  <p>I don't understand how to do this, and I'm not even entirely sure what he means by that. Does he mean to define the variables within the class?</p>
  
  <pre><code>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"])
  
  happy_bday.sing_me_a_song()
  
  bulls_on_parade.sing_me_a_song()
  </code></pre>