zip.py
days = ['Monday','Tuesday','Friday'] fruits = ['banana','apple','orange'] for day,fruit in zip(days,fruits): print(day,fruit)
Ausgabeergebnis:
Monday banana Tuesday apple Friday orange
Recommended Posts