File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Python/Python-Lottery-Simulation Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
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
+ if power_match:
25
+ win_amt = 100
26
+ times_won['3+P'] += 1
27
+ else:
28
+ win_amt = 7
29
+ times_won['3'] += 1
30
+ elif white_matches == 2 and power_match:
31
+ win_amt = 7
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
+ win_amt = 4
38
+ times_won['P'] += 1
39
+ else:
40
+ times_won['0'] += 1
You can’t perform that action at this time.
0 commit comments