Skip to content
dreamcode
dreamcode
Lesson
Practice · Enumerate & zip
  1. Predict
  2. Arrange
  3. Fill in
+20 XP on finish
PREDICT · READ BEFORE YOU WRITE

How many times does the print statement execute?

Trace the program the way the computer would, then make your call before running anything.

names = ["vega", "rigel"]
brightness = [1, 2, 3]
for name, level in zip(names, brightness):
    print(name, level)