This file contains hidden or 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
{ | |
"day": "Monday", | |
"day_type": "", | |
"exercises": [{"ex_mech_type": "Compound", | |
"ex_name": "barbell back squat", | |
"ex_type": "Squat", | |
"ex_equipment": "barbell", | |
"level": "beginner", | |
"main-muscle-worked": "Quads", | |
"reps": "6", |
This file contains hidden or 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
def strictly_increasing(L): | |
"""Returns TRUE if the values in the list are strictly increasing | |
Always increasing; never remaining constant or decreasing or null. | |
""" | |
return all(x<y for x, y in zip(L, L[1:])) | |
def strictly_decreasing(L): | |
"""Returns TRUE if the values in the list are strictly decreasing | |
Always decreasing; never remaining constant or increasing or null. |