Q. Which method adds an element at the end of a list?
Code:
l = [1, 2, 3]
β
Correct Answer: (B)
l.append(4)
Explanation: `append()` adds an element at the end of the list.