Update deck_of_cards.py

pull/680/head
Vardhaman 2022-06-07 09:34:37 +05:30 committed by GitHub
parent 7a094cec63
commit 8e053f4610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class BlackJackCard(Card):
if 1 <= new_value <= 13:
self._value = new_value
else:
raise ValueError('Invalid card value: {}'.format(new_value))
raise ValueError(f'Invalid card value: {new_value}')
class Hand(object):