Previously, you've learned how to create lists, access items using their index positions, and change existing items in lists.
Let's practice combining these fundamental list operations to strengthen your skills!
Engagement Message
Ready to test your list mastery?
Type
Fill In The Blanks
Markdown With Blanks
Create a list of three favorite foods (pizza, tacos, and ice cream, in that order), then access and print the second item:
Suggested Answers
- "pizza"
- "tacos"
- "ice cream"
- 1
Type
Swipe Left or Right
Practice Question
Match each operation with what it does by swiping left or right:
Labels
- Left Label: Accessing Items
- Right Label: Changing Items
Left Label Items
- my_list[0]
- colors[2]
- scores[1]
- names[3]
Right Label Items
- my_list[0] = "new value"
- colors[2] = "purple"
- scores[1] = 95
- names[3] = "Alice"
Type
Sort Into Boxes
Practice Question
Sort these list creations into the correct categories:
Labels
- First Box Label: Valid Lists
- Second Box Label: Invalid Lists
