title: Python: TypeError: __init__() takes exactly 2 arguments (1 given)
body: <p>I know this question has been asked several times, but none have managed to provide me with a solution to my issue. I read these:</p>
  
  <p><a href="https://stackoverflow.com/questions/25805194/init-takes-exactly-2-arguments-1-given">__init__() takes exactly 2 arguments (1 given)?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/24599253/class-init-takes-exactly-2-arguments-1-given">class __init__() takes exactly 2 arguments (1 given)</a></p>
  
  <p>All I am trying to do is create two classes for a "survival game" much like a very crappy version of minecraft. Bellow is the full code for the two classes:</p>
  
  <pre><code>class Player:
      '''
      Actions directly relating to the player/character.
      '''
      def __init__(self, name):
          self.name = name
          self.health = 10
          self.shelter = False
  
      def eat(self, food):
          self.food = Food
          if (food == 'apple'):
              Food().apple()
  
          elif (food == 'pork'):
              Food().pork()
  
          elif (food == 'beef'):
              Food().beef()
  
          elif (food == 'stew'):
              Food().stew()
  
  class Food:
      '''
      Available foods and their properties.
      '''
      player = Player()
  
      def __init__(self):
          useless = 1
          Amount.apple = 0
          Amount.pork = 0
          Amount.beef = 0
          Amount.stew = 0
  
      class Amount:   
          def apple(self):
              player.health += 10
  
          def pork(self):
              player.health += 20
  
          def beef(self):
              player.health += 30
  
          def stew(self):
              player.health += 25      
  </code></pre>
  
  <p>And now for the full error:</p>
  
  <pre><code>Traceback (most recent call last):
    File    "/home/promitheas/Desktop/programming/python/pygame/Survive/survive_classe  s.py", line 26, in &lt;module&gt;
      class Food:
    File     "/home/promitheas/Desktop/programming/python/pygame/Survive/survive_classe    s.py", line 30, in Food
      player = Player()
  TypeError: __init__() takes exactly 2 arguments (1 given)
  </code></pre>
  
  <p>I just want to make the classes work. </p>