1. Home
  2. Data Science
  3. Python
  4. Which method is used to add an element to the end of a…

Added 4 May 2024

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

  1. append() Correct answer
  2. insert()
  3. extend()
  4. remove()

Correct answer

A. append()

18 views

MCQSEXAM

Explanation

The append() method adds an element to the end of a list in Python.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs