I hereby claim:
- I am double-a-92 on github.
- I am double_a (https://keybase.io/double_a) on keybase.
- I have a public key ASASOYfOweFc7U236xM87wyaKY-W38sBpNgYM1K2N57QAgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| 049e29f7461f8aa1b54f92437ddef31e077102419963339e10efd8c17ed4fa3dfbe775b6f147294050997c7d813951832f5501f3f884465c90f4fbbee8d3943dec;gchan |
| $positionMap = [ | |
| 'A' => [21, 56.6], | |
| 'B' => [21, 63.3], | |
| 'C' => [21, 69.5], | |
| 'D' => [21, 78], | |
| 'E' => [21, 83.5], | |
| 'F' => [21, 96], | |
| 'G' => [21, 109], | |
| 'H' => [21, 115], | |
| 'I' => [21, 122], |
| import random | |
| from msvcrt import getch | |
| class Die: | |
| def __init__(self, id): | |
| self.value = 1 | |
| self.id = id | |
| def roll(self): |
| # - Global Constants - | |
| SALES_TAX = 35 # Tax paid when selling (in %) | |
| CURRENCY_UNIT = "USD" | |
| # - Input Handling Functions - | |
| def input_total_cost(): | |
| """Asks the user how much he spent for the products in total""" | |
| total_cost_raw = input("How much did everything cost? ") |
| # Input | |
| CURRENT_YEAR = 2017 | |
| NOF_LEAP_YEARS = 20 | |
| # Functions | |
| def is_leap_year(year): | |
| if year % 4 > 0: | |
| return False | |
| elif year % 100 > 0: | |
| return True |