Created
January 16, 2017 14:42
-
-
Save jcbozonier/4f0031a37c7513756f9e91673587efd5 to your computer and use it in GitHub Desktop.
Multiplications until zero
This file contains hidden or 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
aggregate_product = 1 | |
iterations = 0 | |
while aggregate_product != 0: | |
aggregate_product *= 0.51 | |
iterations += 1 | |
print(iterations) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment