A

Admin • 828.03K Points
Coach

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

  • (A) add()
  • (B) append()
  • (C) insert()
  • (D) push()
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
`append()` adds an item to the end of a list in Python.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.