From d353ef8c7508c781957be96839986fdd423df58f Mon Sep 17 00:00:00 2001 From: Vardhaman <83634399+cyai@users.noreply.github.com> Date: Tue, 7 Jun 2022 09:37:23 +0530 Subject: [PATCH] Update deck_of_cards.ipynb --- .../object_oriented_design/deck_of_cards/deck_of_cards.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/object_oriented_design/deck_of_cards/deck_of_cards.ipynb b/solutions/object_oriented_design/deck_of_cards/deck_of_cards.ipynb index 1a9bc1c5..dccbee18 100644 --- a/solutions/object_oriented_design/deck_of_cards/deck_of_cards.ipynb +++ b/solutions/object_oriented_design/deck_of_cards/deck_of_cards.ipynb @@ -109,7 +109,7 @@ " if 1 <= new_value <= 13:\n", " self._value = new_value\n", " else:\n", - " raise ValueError('Invalid card value: {}'.format(new_value))\n", + " raise ValueError(f'Invalid card value: {new_value}')\n", "\n", "\n", "class Hand(object):\n",