Python Principles

Using lists II

Slide solved ✓

Taking an item from a list

You use a special square-bracket notation to take items out of a list.

For example, if you have this list:

letters = ["a", "b", "c"]

Then letters[0] is the string "a". Similarly, letters[1] is the string "b" and letters[2] == "c".

Lesson completed

Congratulations! You have finished the lesson "Using lists II".

Rate the lesson

Leave feedback



Next lesson Browse lessons
Sorry, that's not right.

explanation