We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09838a2 commit 1832da8Copy full SHA for 1832da8
BlackJack_game/blackjack.py
@@ -107,7 +107,7 @@ def dealer_choice():
107
108
# to continue the game again and again !!
109
k = input("Want to hit or stay?\n Press 1 for hit and 0 for stay ")
110
- if k == 1:
+ if k == "1": #Ammended 1 to a string
111
random.shuffle(deck)
112
p_cards.append(deck.pop())
113
print("You have a total of " + str(sum(p_cards)) + " with the cards ", p_cards)
0 commit comments