A

Admin • 833K Points
Coach

Q. What is the output of the below code?

Code:
myList=[1,2,3,5,3,4,6,9]

myList[-6:6]
  • (A) []
  • (B) [3, 5, 3, 4]
  • (C) [4, 3, 5, 3]
  • (D) Index Error
  • Correct Answer - Option(B)
  • Views: 22
  • 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.