A

Admin • 833K Points
Coach

Q. How to get last element of list in python? Suppose we have list with name arr, contains 5 elements.

  • (A) arr[0]
  • (B) arr[5]
  • (C) arr[last]
  • (D) arr[-1]
  • Correct Answer - Option(D)
  • Views: 29
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.