The Mechanics of a For-Loop
1. Data Collection (List)
"Accra"
"Bogotá"
"Casablanca"
2. Loop Variable (item)
?
# Python Code
for item in collection:
print(item)
Click Next Step to start the loop. Watch how the loop processes the list one item at a time!