Question discussion

In Python language, which of the following method of lists is used to add an element to the end of the list?

3482Medium DSSSB TGT Computer Science 0 replies

In Python language, which of the following method of lists is used to add an element to the end of the list?

  • Aindex ( )
  • Bsort ( )
  • Cpop ( )
  • Dappend ( )
Correct answer: D

Explanation

append() adds an element at the end of a list.

Discussion 0

Nobody has replied yet. Start the discussion!