Q.

What is the output of the following program?
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
Answer» B. 5 8
3.5k
0
Do you find this helpful?
16

View all MCQs in

Python Programming

Discussion

No comments yet