L1/10

Creating a List and Reading an Item

A list stores multiple values in order.

python
colors = ["red", "blue", "green"]
print(colors[0])

Here is what the example does:

  • colors creates a list and stores it in colors.
  • print(colors[0]) displays the result of colors[0].

The assignment changes the specific values, but the basic pattern is the same.

Assignment

Complete the starter code so the program does the following:

  • Set items to ['rope', 'torch', 'map'].
  • Print items[0].

Your finished program should print exactly this output:

text
rope

Be very careful with capitalization, spaces, and line breaks. The output must match exactly.