If I understand it correctly the following code:
dog_breeds = [‘french_bulldog’, ‘dalmatian’, ‘shihtzu’, ‘poodle’, ‘collie’]
for breed in dog_breeds:
the ‘breed’ portion in “for breed in dog_breeds:” is a temporary variable that is defined by each iteration of the list. Meaning, at first pass, the variable ‘breed’ takes the value of the first index in the list -french_bulldog in this case. Then the “print(breed)” instruction prints the value of the temporary variable, french_bulldog. Then the loop proceeds to each other item in the list until it reaches the last index.
I’m new to programming too, and struggling with loops as well; the above is my very newby understanding of a simple loop.