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])
  1. Hello
  2. 1
  3. [1,2,3,4]
  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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.