Skip to content

Instantly share code, notes, and snippets.

@Bloofer
Created November 14, 2022 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bloofer/c7f981d42fd56ee9637a6861c75acee0 to your computer and use it in GitHub Desktop.
Save Bloofer/c7f981d42fd56ee9637a6861c75acee0 to your computer and use it in GitHub Desktop.
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