Skip to content

Instantly share code, notes, and snippets.

@readyready15728
Last active November 27, 2021 14:18
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 readyready15728/a5ad4fcf09c7fee1ca9ec849fc76fb69 to your computer and use it in GitHub Desktop.
Save readyready15728/a5ad4fcf09c7fee1ca9ec849fc76fb69 to your computer and use it in GitHub Desktop.
Not a Puzzle for the Health Addict
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