title: Python append object creation to a list inside another class
body: <p>Why doesn't this add the object to the list? I've played around with Quiz.<strong>class</strong>.questionlist.append(self) by adding self etc</p>
  
  <pre><code>class Question:
  
  def __init__(self, question, answer):
      self.__question = question
      self.__answer = answer
      Quiz.__class__.questionlist.append(self)
  
  
  
  
  class Quiz:
      questionlist = []
  
      def __init__(self):
          self.generateQuestion()
  
  
      def generateQuestion(self):
  
          q1 = Question('How many weeks are there in a year? [DMID Standard]', '52')
          q2 = Question('Do cows drink milk?', 'y')
          q3 = Question("Is the word 'madam' a palindrome?", 'y')
          q4 = Question("Biggest search engine?", 'google')
          q5 = Question('You are in a race. You run past the second guy. What position are you in?', 'second')
  </code></pre>