title: Is there a simple way of assigning instance variables in a Python class?
body: <p>When defining a class in Python 2.7, you feed in variables to an init() function, then assign these to instance variables using e.g <code>self.x</code></p>
  
  <pre><code>class NewClass(object): 
    def __init__(self, x, y):      
      self.x = x                    
      self.y = y
  </code></pre>
  
  <p>If using a large number of variables, is there a way to simplify this process i.e. not have to explicitly define each instance variable?</p>
  
  <p>Or is there a good reason why they are explicitly defined?</p>