-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexercise_generator.py
More file actions
49 lines (43 loc) · 1.02 KB
/
exercise_generator.py
File metadata and controls
49 lines (43 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Jacobus Burger (2023)
# Info:
# Randomly reccomend some exercises in a routine with random numbers.
# This may become a ChatGPT + Exercise Finder + React application
# See:
# https://whitecoattrainer.com/blog/best-exercises
from random import choice, randint
# TODO:
# - add exercises besides bodyweight
# - add drop sets and other types of sets
EXERCISES = [
# Legs
"Pistol Squats",
"Bulgarian Split Squat",
"Sumo Squat",
"Romanian Squat",
"Laying Hamstring Curl",
"Quadracep Extension",
# Arms
"Diamond Pushup",
"Tricep Dips",
"Archer Pushup",
"Handstand Pushup",
"Handstand Shoulder Dip",
"Spider Curls",
# Core
"RDL Plank",
"V Sit",
"Leg Raises",
"Dragon Flag",
]
def exercise():
return ' '.join(
[
str(randint(1,5)), # number of sets
"by",
str(randint(1,15)), # number of reps
"of",
choice(EXERCISES) # exercise
]
)
if __name__ == '__main__':
print(exercise())