In Python language, which of the following method of lists is used to add an element to
In Python language, which of the following method of lists is used to add an element to
the end of the list?
Show answerHide answer
Correct answer: (D) append ( )
Explanation
append() adds a single element to the end of a list. pop() removes an element, sort() orders the list, index() finds a position.