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.
1.5k
0
Do you find this helpful?
16

Discussion

No comments yet