Created
November 14, 2022 12:31
-
-
Save Bloofer/c7f981d42fd56ee9637a6861c75acee0 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
promos = [globals()[name] for name in globals() | |
if name.endswith('_promo') | |
and name != 'best_promo'] | |
def best_promo(order): | |
return max(promo(order) for promo in promos) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment