EasyOutput prediction
enumerate default start
What does this code print?
colors = ['red', 'green', 'blue']
for idx, color in enumerate(colors):
if idx == 1:
print(color)← → arrow keys to navigate
Sign in to save your progress.
What does this code print?
colors = ['red', 'green', 'blue']
for idx, color in enumerate(colors):
if idx == 1:
print(color)← → arrow keys to navigate
Sign in to save your progress.