mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2024-03-22 13:11:35 +08:00
Fix loop bug in deck of cards exercise (#396)
This commit is contained in:
parent
0beb557e8f
commit
06b3ed2adc
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user