Fix loop bug in deck of cards exercise (#396)
parent
d47546b98c
commit
572ad468f3
|
@ -122,7 +122,7 @@
|
||||||
"\n",
|
"\n",
|
||||||
" def score(self):\n",
|
" def score(self):\n",
|
||||||
" total_value = 0\n",
|
" total_value = 0\n",
|
||||||
" for card in card:\n",
|
" for card in self.cards:\n",
|
||||||
" total_value += card.value\n",
|
" total_value += card.value\n",
|
||||||
" return total_value\n",
|
" return total_value\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|
Loading…
Reference in New Issue