Created
March 31, 2022 19:43
-
-
Save Xevion/64251d716466467e4fb76b20e0289e0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> def max_penalized(n: float, penalty: float = 0.4) -> float: | |
return n + (100 - n) * (1 - penalty) | |
>>> max_penalized(85.56) | |
94.224 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment