Skip to content

Commit 1832da8

Browse files
authored
Update blackjack.py
Ammended the input character "1" to a string right at the bottom
1 parent 09838a2 commit 1832da8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BlackJack_game/blackjack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def dealer_choice():
107107

108108
# to continue the game again and again !!
109109
k = input("Want to hit or stay?\n Press 1 for hit and 0 for stay ")
110-
if k == 1:
110+
if k == "1": #Ammended 1 to a string
111111
random.shuffle(deck)
112112
p_cards.append(deck.pop())
113113
print("You have a total of " + str(sum(p_cards)) + " with the cards ", p_cards)

0 commit comments

Comments
 (0)