title: Python inherit variables from parent class
body: <p>Sorry if I don't explain it that well but I'll try my best:</p>
  
  <p>So I want to inherit the variables from the Parent class, but I don't want to pass them again when creating an instance of the Child class because I think that is redundant. I just want to use the eye color from the Parent for example. See the example code below for what I mean</p>
  
  <p>This is what works:</p>
  
  <pre><code>class Parent:
      def __init__(self, eye_color, length):
          self.eye_color = str(eye_color)
          self.length = length
  
  
  class Child(Parent):
      def __init__(self, gender, eye_color, length):
          super().__init__(eye_color, length)
          self.gender = str(gender)
  
  x = Parent("Blue", 2)
  y = Child("Men", "Blue", 2)
  
  print(x.eye_color, x.length)
  print(y.gender, x.length)
  </code></pre>
  
  <p>This is what I somehow want:</p>
  
  <pre><code>class Parent:
      def __init__(self, eye_color, length):
          self.eye_color = str(eye_color)
          self.length = length
  
  
  class Child(Parent):
      def __init__(self, gender):
          super().__init__(eye_color, length)
          self.gender = str(gender)
  
  x = Parent("Blue", 2)
  y = Child("Men")
  
  print(x.length, x.eye_color)
  print(y.gender, x.length)
  </code></pre>