title: Why is this simple python class not working?
body: <p>I'm trying to make a class that will get a list of numbers then print them out when I need. I need to be able to make 2 objects from the class to get two different lists. Here's what I have so far </p>
  
  <pre><code>class getlist:   
      def newlist(self,*number):
          lst=[]
          self.number=number
          lst.append(number)
  
      def printlist(self):
          return lst
  </code></pre>
  
  <p>Sorry I'm not very clear, I'm a bit new to oop, can you please help me cos I don't know what I'm doing wrong. Thanks.</p>