Scenario:
A student named David is preparing for the new school term. He has a few items already in his bag: 'notebook'
, 'pen'
, and 'eraser'
.
Task:
Write a Python program to help David:
Create a list called supplies
with the three items.
Print the full list of supplies.
Print the last item in the list.
Add 'ruler'
to the list using .append()
.
Print the updated list.
Use len()
to count the total number of items and print it.
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!