[PYTHON] zip

zip.py


days = ['Monday','Tuesday','Friday']
fruits = ['banana','apple','orange']

for day,fruit in zip(days,fruits):
    print(day,fruit)

Output result:

Monday banana
Tuesday apple
Friday orange

Recommended Posts