Skip to content

Commit 2667014

Browse files
committed
changed
1 parent b5c69c1 commit 2667014

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

code/daniel/04_BlackJackAdvice/daniel-Lab4-Blackjack Advice.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,26 @@
4545
"2": 2,
4646
"A": 1
4747
}
48+
# #======================
49+
# # Input validation fix
50+
# #======================
51+
# while True:
52+
# try:
53+
# question_1 = int(input("What's your first card?: "))
54+
# question_2 = int(input("What's your second card?: "))
55+
# question_3 = int(input("What's your third card?: "))
56+
# except ValueError:
57+
# print("Invalid Value, try agian")
58+
# continue
59+
# except TypeError:
60+
# print("Please enter a number")
61+
# continue
62+
# # else:
63+
# # break
64+
65+
66+
4867

49-
question_1 = input("What's your first card?: ")
50-
question_2 = input("What's your second card?: ")
51-
question_3 = input("What's your third card?: ")
5268
card_total = 0
5369

5470
while True:

0 commit comments

Comments
 (0)