array = ['cheese', 'milk', 'bread']
for i in array:
print(i) # will print out 'cheese' 'milk' and 'bread' to the console
i = 0
while i < array:
print(array[i]) #will print out 'cheese' 'milk' and 'bread' to the console
for i in range(len(array))
print(i) #will print out 'cheese' 'milk' and 'bread' to the console
#variable doesn't have to be i in for loop for example:
for ingredients in array:
print(i) #will print out 'cheese' 'milk' and 'bread' to the console
#this can help you understand what the for loop is doing better