You can also just step the loop by 2, no checks required grayblack
You can also just step the loop by 2, no checks required
print([i for n, i in enumerate(lst) if n % 2 == 0]) newfi
print([i for n, i in enumerate(lst) if n % 2 == 0])