

McqMate
Q. |
To add a new element to a list we use which command? |
A. | list1.add(5) |
B. | list1.append(5) |
C. | list1.addlast(5) |
D. | list1.addend(5) |
Answer» B. list1.append(5) | |
Explanation: we use the function append to add an element to the list. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet