A

Admin • 833.24K Points
Coach

Q. How do you access the second element in a list x = [10, 20, 30]?

  • (A) x[1]
  • (B) x(1)
  • (C) x{1}
  • (D) x.1
  • Correct Answer - Option(A)
  • Views: 31
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

List elements are accessed using square brackets and zero-based indexing.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.