Explanation:We use the function append to add an element to the list. 7. 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:A
Explanation:We use the function append to add an element to the list. 7. 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)
Explanation:Execute in the shell to verify.