A

Admin • 831.35K Points
Coach

Q. What is the output of the following program?

Code:
T = (1, 2, 3, 4, 5, 6, 7, 8)
print(T[T.index(5)], end = " ")
print(T[T[T[6]-3]-6])
  • (A) 4 0
  • (B) 5 8
  • (C) 5 IndexError
  • (D) 4 1
  • Correct Answer - Option(B)
  • Views: 13
  • 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.