A

Admin • 802.91K Points
Coach

Q. Which method is used to reverse a list in place?

  • (A) invert()
  • (B) reverse()
  • (C) flip()
  • (D) turn()
  • Correct Answer - Option(B)
  • Views: 4
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
reverse() reverses the list without creating a new one.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.