index() function will return the index of first matched item from the list.
1 Like
True
Reason — The index() function in Python returns the index of first matched item from the list.
index()
Answered By
3 Likes
List[a:b] will give the elements between a and b.
The append() function is used to add a value in a list at any place.
extend() function is used to add multiple list items in a list.
Consider the following statement:
List = ['h', 'o', 'i']
The length of the above list is: