Home »
Python »
Python Tuples MCQs
What will be the output of the following code? | Tuples Que. 17
17. What will be the output of the following code?
T1=("hello",[1,2,3,4],("Namastey","Bonjour"))
print(T1[1])
- Hello
- 1
- [1,2,3,4]
- 1,2,3,4
ol>
Answer: C) [1,2,3,4]
Explanation:
Since the index 1 list is started so all the elements of the list will be printed.