Zip in for loop

19 August 2020

Code

# Lists
tire = ['wide', 'narrow', 'studded', 'all_season']
traction = ['moderate', 'low', 'high', 'average']

# Zip
for i, j in zip(tire, traction):
    print('Try', i , ' tire for ', j, ' traction.')
Try wide  tire for  moderate  traction.
Try narrow  tire for  low  traction.
Try studded  tire for  high  traction.
Try all_season  tire for  average  traction.






Any errors in code above?
Please send a message.