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.
customer and set it to “Amara”.fruits containing “Apple”, “Mango”, and “Banana”.new_fruit.new_fruit to the fruits list.first_fruit.fruit_count.Start your codebook with this exact line:
import task_lists_01
We’re always looking for international STEM educators to join our team. If you are interested, please send us a mail and we’ll get back to you!
If you have any questions, kindly send us a mail. Don’t forget to follow and like all our social accounts to get updates on competitions!
