ds_using_list.txt 404 B

1234567891011
  1. $ python ds_using_list.py
  2. I have 4 items to purchase.
  3. These items are: apple mango carrot banana
  4. I also have to buy rice.
  5. My shopping list is now ['apple', 'mango', 'carrot', 'banana', 'rice']
  6. I will sort my list now
  7. Sorted shopping list is ['apple', 'banana', 'carrot', 'mango', 'rice']
  8. The first item I will buy is apple
  9. I bought the apple
  10. My shopping list is now ['banana', 'carrot', 'mango', 'rice']