We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33b4ff8 commit c6969cfCopy full SHA for c6969cf
Python/Python-Lottery-Simulation/snippets.txt
@@ -0,0 +1,40 @@
1
+times_won = {
2
+ '5+P': 0,
3
+ '5': 0,
4
+ '4+P': 0,
5
+ '4': 0,
6
+ '3+P': 0,
7
+ '3': 0,
8
+ '2+P': 0,
9
+ '1+P': 0,
10
+ 'P': 0,
11
+ '0': 0
12
+}
13
+
14
+------------------------
15
16
+elif white_matches == 4:
17
+ if power_match:
18
+ win_amt = 50_000
19
+ times_won['4+P'] += 1
20
+ else:
21
+ win_amt = 100
22
+ times_won['4'] += 1
23
+ elif white_matches == 3:
24
25
26
+ times_won['3+P'] += 1
27
28
+ win_amt = 7
29
+ times_won['3'] += 1
30
+ elif white_matches == 2 and power_match:
31
32
+ times_won['2+P'] += 1
33
+ elif white_matches == 1 and power_match:
34
+ win_amt = 4
35
+ times_won['1+P'] += 1
36
+ elif power_match:
37
38
+ times_won['P'] += 1
39
40
+ times_won['0'] += 1
0 commit comments