A

Admin • 802.91K Points
Coach

Q. Which method is used to remove all elements from a list?

  • (A) delete()
  • (B) clear()
  • (C) remove()
  • (D) discard()
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
clear() empties the list completely.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.