Q.

To insert 5 to the third position in list1, we use which command?

A. list1.insert(3, 5)
B. list1.insert(2, 5)
C. list1.add(3, 5)
D. list1.append(3, 5)
Answer» B. list1.insert(2, 5)
Explanation: execute in the shell to verify.
1.4k
0
Do you find this helpful?
17

Discussion

No comments yet