Update deck_of_cards.py
parent
7a094cec63
commit
8e053f4610
|
@ -55,7 +55,7 @@ class BlackJackCard(Card):
|
||||||
if 1 <= new_value <= 13:
|
if 1 <= new_value <= 13:
|
||||||
self._value = new_value
|
self._value = new_value
|
||||||
else:
|
else:
|
||||||
raise ValueError('Invalid card value: {}'.format(new_value))
|
raise ValueError(f'Invalid card value: {new_value}')
|
||||||
|
|
||||||
|
|
||||||
class Hand(object):
|
class Hand(object):
|
||||||
|
|
Loading…
Reference in New Issue