Blog

What is the output for the below code?

t = (2, 4, 6, 8, 10)
[t[i] for i in range(0, len(t), 2)]