Last active
November 27, 2021 14:18
-
-
Save readyready15728/a5ad4fcf09c7fee1ca9ec849fc76fb69 to your computer and use it in GitHub Desktop.
Not a Puzzle for the Health Addict
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
cigarettes_per_day = 1 | |
total_cigarettes = 0 | |
day = 0 | |
while total_cigarettes < 200: | |
total_cigarettes += cigarettes_per_day | |
print(f'Smoked {cigarettes_per_day} on day {day}, with a total of {total_cigarettes}') | |
cigarettes_per_day += 7 | |
day -= 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment