From 06b3ed2adc8336ba068b1673c42c6762528efe7a Mon Sep 17 00:00:00 2001 From: Joilson Cisne Date: Tue, 7 Jul 2020 21:56:05 -0300 Subject: [PATCH] Fix loop bug in deck of cards exercise (#396) --- .../object_oriented_design/deck_of_cards/deck_of_cards.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/object_oriented_design/deck_of_cards/deck_of_cards.ipynb b/solutions/object_oriented_design/deck_of_cards/deck_of_cards.ipynb index 45b217a0..1a9bc1c5 100644 --- a/solutions/object_oriented_design/deck_of_cards/deck_of_cards.ipynb +++ b/solutions/object_oriented_design/deck_of_cards/deck_of_cards.ipynb @@ -122,7 +122,7 @@ "\n", " def score(self):\n", " total_value = 0\n", - " for card in card:\n", + " for card in self.cards:\n", " total_value += card.value\n", " return total_value\n", "\n",