You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Register a new user with a functionregister_user()
Register a new user:
please give your username : admin
please give your password : password
User registered successfully!
Authenticate user
# Authenticate users with a functionauthenticate_user()
# login with a registered user
Authenticating user...
please give your username : admin
please give your password : password
User authenticated successfully!# another user
Authenticating user...
please give your username : guest
please give your password : 1234
User authenticated successfully!# another user with wrong credentials
Authenticating user...
please give your username : julio
please give your password : iglesias
Invalid credentials, Please, Try again:
## Add a workout plan```python# Add workout to the workout listadd_workout(workouts,workout_id,workout_name,calorie_chart):
# Create workout plan for the current usercreate_workout_plan():
Create a workout plan:
please give your username : guest
Available workouts:
1: Running
2: Cycling
3: Swimming
4: Yoga
5: Push-ups
6: Sit-ups
7: Squats
8: Jumping Jacks
Enter workout Name (x to finish): 1
Invalid workout Name, please try again.
Enter workout Name (x to finish): Yoga
Enter workout Name (x to finish): Squats
Enter workout Name (x to finish): x
Workout plan created and saved successfully!
Calculate calories burned
# Calculate calories burned for the current usercalculate_calories_burned():
Calculate calories burned:
Please enter your username: guest
Please enter the workout name: Yoga
Please enter the start time (HH:MM): 06:00
Please enter the end time (HH:MM): 10:00
Calories burned calculated and logged successfully!