6. Write the most appropriate list method to perform the following tasks.
(i) Get the position of an item in a list.
(ii) Add single element at the end of the list.
(111) Delete the 4th element from the list.
(iv) Add an element in the beginning of the list.
Answers
Answered by
12
- list.index(item)
- list.append(item)
- list.pop(3)
- list.insert(0, item)
Similar questions