  
      def remaining_cards(self):
          return len(self.cards) - deal_index
  
      def deal_card():
          try:
              card = self.cards[self.deal_index]
              card.is_available = False
              self.deal_index += 1
          except IndexError:
 
</s> remove         for card in card:
 </s> add         for card in self.cards: </s> remove         return len(self.cards) - deal_index
 </s> add         return len(self.cards) - self.deal_index
    def deal_card(self):
  
      def remaining_cards(self):
          return len(self.cards) - deal_index
  
    def deal_card(self):
          try:
              card = self.cards[self.deal_index]
              card.is_available = False
              self.deal_index += 1
          except IndexError:
keep keep keep keep replace keep keep keep keep keep
 Add missing self variables to Deck of Cards solution (#145) 
solutions/object_oriented_design/deck_of_cards/deck_of_cards.py