Skip to content

Instantly share code, notes, and snippets.

@StoneSwine
Last active May 5, 2020 10:35
Have you ever wondered how expensive the gasprice must be before it is feasible to use a percentage discount instead of a static discount?
print([i/100 for i in range(1,20*100) if (i/100)*0.97<(i/100)-0.55][0]) # three percent vs. 0.55 kr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment