title: Append object to array
body: <p>I'm beginner with Python. I know only C++/C# so...
  My problem is <code>append</code> to my array some object which is <code>Card</code> with 2 parameters, card has color and value</p>
  
  <p>part of code doesn't work </p>
  
  <pre><code>class Game: 
      table = []
      ....
      def play(self, *players):
          for singlePlayer in players:
              self.table.append(singlePlayer.throwCard())
  </code></pre>
  
  <p>function <code>throwCard()</code> in <code>Player</code></p>
  
  <pre><code>def throwCard(self):
      cardToThrow = self.setOfCards[0]
      del self.setOfCards[0]
      return cardToThrow
  </code></pre>
  
  <p>"main"</p>
  
  <pre><code>player1 = Player()
  player2 = Player()
  game = Game()
  game.play([player1, player2])
  </code></pre>
  
  <p>Do you have some suggestions?</p>
  
  <blockquote>
    <p>AttributeError: 'list' object has no attribute 'throwCard'</p>
  </blockquote>