Back to Freecodecamp

Lists

curriculum/challenges/english/blocks/lists-and-tuples/lists-video.md

latest358 B
Original Source

--description--

In this video, you will learn about lists, list indexing, slicing, and basic list operations.

--questions--

--text--

What will be the output for the following code?

python
friends = ["Kevin", "Karen", "Jim"]
print(friends[-1])

--answers--

"Kevin"


"Jim"


"Karen"


Error

--video-solution--

2