McqMate
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. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet