Created
March 5, 2021 12:30
-
-
Save jonas-eschle/a5595c4d83b02f027b18c07db0ac707e to your computer and use it in GitHub Desktop.
fit_enough.py
This file contains 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
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