From 8e053f461098ab422fb70c0facdd54c6b086b432 Mon Sep 17 00:00:00 2001 From: Vardhaman <83634399+cyai@users.noreply.github.com> Date: Tue, 7 Jun 2022 09:34:37 +0530 Subject: [PATCH] Update deck_of_cards.py --- solutions/object_oriented_design/deck_of_cards/deck_of_cards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/object_oriented_design/deck_of_cards/deck_of_cards.py b/solutions/object_oriented_design/deck_of_cards/deck_of_cards.py index a4708758..94f8b105 100644 --- a/solutions/object_oriented_design/deck_of_cards/deck_of_cards.py +++ b/solutions/object_oriented_design/deck_of_cards/deck_of_cards.py @@ -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):