Created
January 14, 2019 13:20
-
-
Save Mrngilles/13001adcb715d4dabb22825557a33e30 to your computer and use it in GitHub Desktop.
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
EXERCISES = [ | |
"Put on sport shoes" | |
"Go to the gym", | |
"Rowing", | |
"Exercises with light weights", | |
"Exercises with heavy weights" | |
] | |
TRAVEL_EXERCISES = [ | |
"1 Squat", | |
"10 Squats", | |
"10 push-ups", | |
"Max push-ups", | |
"Max Squats" | |
] | |
if travelling(): | |
exercise_time = waking_up | |
exercises = EXERCISES | |
else: | |
exercise_time = after_dinner | |
exercises = TRAVEL_EXERCISES | |
@exercise_time | |
def gym_routine(exercises): | |
for exercise in exercises: | |
if can_keep_going(): | |
do(exercise) | |
else: | |
break | |
shower() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment