for loops iterate over a collection of items, such as list or dict, and run a block of code with each element from the collection.
for i in [0, 1, 2, 3, 4]:
print(i)
The above for loop iterates over a list of numbers.
Each iteration sets the value of i to the next element of the list. So f...