πŸ“Š Python
Q. Which method is used to remove all elements from a list?
  • (A) delete()
  • (B) clear()
  • (C) remove()
  • (D) discard()
πŸ’¬ Discuss
βœ… Correct Answer: (B) clear()

Explanation: clear() empties the list completely.

Explanation by: Mr. Dubey
clear() empties the list completely.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
61
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate