Fill the Fruit Basket
Python
15 pts
Fill the Fruit Basket
The set fruits holds two fruits.
- Add
"papaya"withadd(). - Add all fruits from the list
deliverywithupdate(). - Print the number of fruits, then the sorted fruits.
Expected output:
5 ['banana', 'guava', 'mango', 'orange', 'papaya']
Checklist
- Add
"papaya"tofruitswithadd(). - Add all fruits from
deliverywithupdate(). - Print the number of fruits, then the sorted fruits.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
