Section 1 - Instruction

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?

Section 2 - Practice

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
Section 3 - Practice

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"
Section 4 - Practice

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
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal