Created
May 25, 2017 14:13
-
-
Save jezcope/e8478891df13f440ab3228b5a8bdbbab 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
# A minimalist workout generator: | |
# | |
# - No commandline options | |
# - All configuration and data in this file | |
import random | |
GROUPS = { | |
'Core front': [ | |
'Crunches', | |
'Reverse crunches', | |
'Bicycles', | |
'Russian twist' | |
], | |
'Core back': [ | |
'Superman', | |
'Deadlifts', | |
'Back extension' | |
] | |
} | |
COUNT = 3 | |
for group, exercises in GROUPS.items(): | |
print(group) | |
print('-' * len(group)) | |
for ex in random.sample(exercises, COUNT): | |
print(f'- {ex}') | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment