Throughout this course, you've learned to create lists, access items with both positive and negative indices, change items, add items with .append()
, remove items with .remove()
, and count items with len()
.
Let's combine all these skills to become a true list master!
Engagement Message
Ready to demonstrate your comprehensive list abilities?
Type
Fill In The Blanks
Markdown With Blanks
A program manages a playlist. Complete the operations to create a playlist, add a song, and check the total number of songs:
Suggested Answers
- Bohemian Rhapsody
- Stairway to Heaven
- append
- len
Type
Sort Into Boxes
Practice Question
Sort these list operations into the correct categories based on what they do:
Labels
- First Box Label: Modify List
- Second Box Label: Access Info
First Box Items
- .append()
- .remove()
- list[2] =
Second Box Items
- len()
- list[0]
- list[-1]
