EasyOutput prediction
enumerate gives index and value
What does this code print?
fruits = ['apple', 'banana']
for i, fruit in enumerate(fruits, start=1):
print(i, fruit)← → arrow keys to navigate
Sign in to save your progress.
What does this code print?
fruits = ['apple', 'banana']
for i, fruit in enumerate(fruits, start=1):
print(i, fruit)← → arrow keys to navigate
Sign in to save your progress.