Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jonas-eschle/a5595c4d83b02f027b18c07db0ac707e to your computer and use it in GitHub Desktop.
Save jonas-eschle/a5595c4d83b02f027b18c07db0ac707e to your computer and use it in GitHub Desktop.
fit_enough.py
name = "Jonas"
age = 41
running_time = 0.2
jumping_time = 0.1
tot_exercise_time = running_time + jumping_time
# make it a direct message
message = name
is_good = abs(tot_exercise_time - 0.3) < 0.001
if is_good: # TODO: what is the ideal time?
change = 0
message = message + "Great!"
else:
change = abs(tot_exercise_time - 0.3)
message = message + "with age "+ str(age) + "change exercise time by" # TODO: add time, change age correctly
print(message) # TODO: wrong order of Great?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment