Skip to content

Commit

Permalink
Create snippets.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
CoreyMSchafer authored Jan 9, 2023
1 parent 33b4ff8 commit c6969cf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Python/Python-Lottery-Simulation/snippets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
times_won = {
'5+P': 0,
'5': 0,
'4+P': 0,
'4': 0,
'3+P': 0,
'3': 0,
'2+P': 0,
'1+P': 0,
'P': 0,
'0': 0
}

------------------------

elif white_matches == 4:
if power_match:
win_amt = 50_000
times_won['4+P'] += 1
else:
win_amt = 100
times_won['4'] += 1
elif white_matches == 3:
if power_match:
win_amt = 100
times_won['3+P'] += 1
else:
win_amt = 7
times_won['3'] += 1
elif white_matches == 2 and power_match:
win_amt = 7
times_won['2+P'] += 1
elif white_matches == 1 and power_match:
win_amt = 4
times_won['1+P'] += 1
elif power_match:
win_amt = 4
times_won['P'] += 1
else:
times_won['0'] += 1

0 comments on commit c6969cf

Please sign in to comment.