Q. Which method adds an item to a list?

A
append()
B
add()
C
insert()
D
extend()
Solution:

append() adds a single item to the end of a list, e.g., [1].append(2) makes [1, 2].

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!