Q. Which method adds an item to a list?
Solution:
append() adds a single item to the end of a list, e.g., [1].append(2) makes [1, 2].
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
append() adds a single item to the end of a list, e.g., [1].append(2) makes [1, 2].
Strengthen Your Practice with our comprehensive question bank.