Informatics Practices
extend() function is used to add multiple list items in a list.
Python List Manipulation
1 Like
Answer
True
Reason — The extend() method adds one list at the end of another list. In other words, all the items of a list are added at the end of an already created list.
Answered By
1 Like
Related Questions
The append() function is used to add a value in a list at any place.
index() function will return the index of first matched item from the list.
Consider the following statement:
List = ['h', 'o', 'i']The length of the above list is:
- 5
- 3
- 0
- None of these
The list L1 contains [3, 4, 5, 6, 6, 8, 0]. What will be the output of the following expression?
print(L1 [-1])- 0
- 3
- 5
- 8