title: TypeError: Missing one required positional argument
body: <p>I am working on a game as a side project for fun and I have run into this error and I really don't know why it is happening...</p>
  
  <p>Here is the code:</p>
  
  <pre><code>class players:
      def __init__(self, location, image_file, direction):
          self.location = location
          self.image_file = image_file
          self.direction = direction
          self.rect = self.image_file.get_rect()
  
      def turn(self, direction, playerImages):
          keys = pygame.key.get_pressed()
          if keys[pygame.K_a] == True:
              self.direction -= 1
              if self.direction &lt; -3:
                  self.direction = 3
          if keys[pygame.K_d] == True:
              self.direction = 1
              if self.direction &gt; 3:
                  self.direction = 3
  
          if self.direction == -3:
              self.image_file = playerImages[0]
          if self.direction == -2:
              self.image_file = playerImages[1]
          if self.direction == -1:
              self.image_file = playerImages[2]
          if self.direction == 0:
              self.image_file = playerImages[3]
          if self.direction == 1:
              self.image_file = playerImages[4]
          if self.direction == 2:
              self.image_file = playerImages[5]
          if self.direction == 3:
              self.image_file = playerImages[6]
  
          return self.direction, self.image_file
  </code></pre>
  
  <p>I call it like:</p>
  
  <pre><code>skierDirection, playerImage = players.turn(skierDirection, playerImages)
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Owen\Desktop\coding compile file\SkiFreeX\SkiFreeX.py", line 129, in &lt;module&gt;
      main()
    File "C:\Users\Owen\Desktop\coding compile file\SkiFreeX\SkiFreeX.py", line 122, in main
      skierDirection, playerImage = players.turn(skierDirection, playerImages)
  TypeError: turn() missing 1 required positional argument: 'playerImages'
  [Finished in 0.385s]
  </code></pre>
  
  <p>Any ideas?</p>