01 / 06
You want to match two rows up
You have a list of names and a list of scores, kept separately, and you want to show "Yui got 90".
With enumerate from the last lesson you can do it by looking one up by number. But the number showing through costs the reader a moment.
names = ["Yui", "Sou"]scores = [90, 60]for i, name in enumerate(names): print(name, scores[i])Result
Yui 90 Sou 60