Back to Freecodecamp

List Functions

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

latest410 B
Original Source

--description--

In this video, you will learn how to work with useful methods including the append(), index(), clear(), sort(), and reverse() methods.

--questions--

--text--

What will be the output for the following code?

python
friends = ["Kevin", "Karen", "Jim", "Oscar", "Toby"]

print(friends.index("Oscar"))

--answers--

4


1


2


3

--video-solution--

4