Which method is used to add an element at the end of a Python list?

Options

  • A. insert()
  • B. append()
  • C. extend()
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. append()

Detailed Explanation

The append() method adds a single element at the end of a list.