Question 1: Variables

Write a Python program to display basic details about a pet and its favorite activity.

  1. Create a variable called pet_name and assign it a name (e.g., "Buddy").
  2. Create a variable called pet_type and assign it the type of pet (e.g., "dog").
  3. Create a variable called pet_age and assign it the pet’s age (e.g., 4).
  4. Create a variable called favorite_activity and assign it the pet’s favorite activity (e.g., "chasing balls").
  5. Use the print function to display the following:
    • The pet’s name and type: "My pet's name is [pet_name], and it is a [pet_type]."
    • The pet’s age: "It is [pet_age] years old."
    • The pet’s favorite activity: "It loves [favorite_activity]!"
Write what you are looking for, and press enter to begin your search!