| - Name: What will be the output of the following Python code?
t = (1, 2, 4, 3, 8, 9)
[t[i] for i in range(0, len(t), 2)]
What will be the output of the following Python code? t = (1, 2, 4, 3, 8, 9)
[ti for i in range(0, len(t), 2)] - (1, 4, 8)
Answer should be a list - [1, 4, 8]
Answer is Correct - [1, 2, 4, 3, 8, 9]
- [2, 3, 9]
|