Question 10: Variables

Write a Python program to display information about a person’s health and fitness routine.

  1. Create a variable called person_name and assign it the person’s name (e.g., "Jordan").
  2. Create a variable called age and assign it the person’s age (e.g., 25).
  3. Create a variable called exercise_type and assign it the type of exercise they do (e.g., "yoga").
  4. Create a variable called exercise_duration and assign it the number of minutes they exercise each day (e.g., 30).
  5. Use the print function to display the following:
    • The person’s name and age: "The person’s name is [person_name], and they are [age] years old."
    • The exercise type and duration: "They do [exercise_type] for [exercise_duration] minutes every day."
    • Encourage them: "Great job, [person_name]! Keep up the good work!"
Write what you are looking for, and press enter to begin your search!