Quiz · Tuples and unpacking · lesson 6 of 8
Quiz — zip and enumerate
What does the program print?
names = ["ann", "bob", "cid"]
scores = [90, 75]
pairs = list(zip(names, scores))
numbered = list(enumerate(names, 1))
print(len(pairs), numbered[-1][0])Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.