πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5 8

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
260
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
97%
Success Rate