for color in ["red", "blue"]:
print(color)Line-by-line explanation
- The list contains two text values.
forbegins the loop.colortemporarily holds one item at a time.- The print line runs once for red and once for blue.