Question 1: List Fruit Shop Shopping Basket

🍎 Fruit Shop Shopping Basket

Amara visits a fruit shop to buy some fruits. The shopkeeper writes down the fruits she wants in a shopping basket. Amara decides to add one more fruit and wants to see the first fruit on her list and how many fruits she has selected.

Write a Python program that stores Amara’s fruits in a list, adds another fruit, and prints her shopping basket details.

  • Store the customer’s name in a variable called customer and set it to “Amara”.
  • Create a list called fruits containing “Apple”, “Mango”, and “Banana”.
  • Store “Orange” in a variable called new_fruit.
  • Add new_fruit to the fruits list.
  • Store the first fruit in the list in a variable called first_fruit.
  • Store the number of fruits in a variable called fruit_count.
  • Print the customer’s name, all the fruits in the list, the first fruit, and the total number of fruits.

Start your codebook with this exact line:

import task_lists_01
Write what you are looking for, and press enter to begin your search!