each name in the list we could do this by retrieving each name from the list individuallybut this approach could cause several problems for oneit would be repetitive to do this with long list of names alsowe' have to change our code each time the list' length changed for loop avoids both of these issues by letting python manage these issues internally let' use for loop to print out each name in list of magiciansmagicians py magicians ['alice''david''carolina' for magician in magiciansw print(magicianwe begin by defining list at ujust as we did in at vwe define for loop this line tells python to pull name from the list magiciansand store it in the variable magician at we tell python to print the name that was just stored in magician python then repeats lines and wonce for each name in the list it might help to read this code as "for every magician in the list of magiciansprint the magician' name the output is simple printout of each name in the listalice david carolina closer look at looping the concept of looping is important because it' one of the most common ways computer automates repetitive tasks for examplein simple loop like we used in magicians pypython initially reads the first line of the loopfor magician in magiciansthis line tells python to retrieve the first value from the list magicians and store it in the variable magician this first value is 'alicepython then reads the next lineprint(magicianpython prints the current value of magicianwhich is still 'alicebecause the list contains more valuespython returns to the first line of the loopfor magician in magicianspython retrieves the next name in the list'david'and stores that value in magician python then executes the lineprint(magician