Python | for loop quiz | Question 19

Last Updated :
Discuss
Comments

What will the following code output?

numbers = [1, 2, 3, 4, 5]
for i, num in enumerate(numbers):
   if i % 2 == 0:
       continue
   print(num, end=' ')
 

1 3 5

2 4

1 2 3 4 5

0 1 2 3 4

Share your thoughts in the comments