Question 5: Variables

Write a Python program to display information about a child’s favorite fruit.

  1. Create a variable called fruit_name and assign it the name of the fruit (e.g., "mango").
  2. Create a variable called fruit_color and assign it the color of the fruit (e.g., "yellow").
  3. Create a variable called fruit_taste and assign it the taste of the fruit (e.g., "sweet").
  4. Create a variable called fun_fact and assign it a fun fact about the fruit (e.g., "Mangoes are called the king of fruits!").
  5. Use the print function to display the following:
    • The fruit’s name and color: "My favorite fruit is the [fruit_name], and it is [fruit_color]."
    • The fruit’s taste: "It tastes [fruit_taste]."
    • A fun fact: "Did you know? [fun_fact]"
Write what you are looking for, and press enter to begin your search!