File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed
code/daniel/04_BlackJackAdvice Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 45
45
"2" : 2 ,
46
46
"A" : 1
47
47
}
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
+
48
67
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?: " )
52
68
card_total = 0
53
69
54
70
while True :
You can’t perform that action at this time.
0 commit comments