Skip to content

Instantly share code, notes, and snippets.

@jezcope
Created May 25, 2017 14:13
Show Gist options
  • Save jezcope/e8478891df13f440ab3228b5a8bdbbab to your computer and use it in GitHub Desktop.
Save jezcope/e8478891df13f440ab3228b5a8bdbbab to your computer and use it in GitHub Desktop.
# 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