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

  • (A) append()
  • (B) add()
  • (C) insert()
  • (D) extend()
πŸ’¬ Discuss
βœ… Correct Answer: (A) append()
Explanation: The append() method is used to add an element to the end of a list in Python.
Explanation by: Priyanka Tomar
The append() method is used to add an element to the end of a list in Python.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
139
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
82%
Success Rate