expects an indented block and doesn' find oneit lets you know which line it had problem with file "magicians py"line print(magicianindentationerrorexpected an indented block you can usually resolve this kind of indentation error by indenting the line or lines immediately after the for statement forgetting to indent additional lines sometimes your loop will run without any errors but won' produce the expected result this can happen when you're trying to do several tasks in loop and you forget to indent some of its lines for examplethis is what happens when we forget to indent the second line in the loop that tells each magician we're looking forward to their next trickmagicians ['alice''david''carolina'for magician in magiciansprint(magician title("that was great trick!" print(" can' wait to see your next trickmagician title(\ "the print statement at is supposed to be indentedbut because python finds at least one indented line after the for statementit doesn' report an error as resultthe first print statement is executed once for each name in the list because it is indented the second print statement is not indentedso it is executed only once after the loop has finished running because the final value of magician is 'carolina'she is the only one who receives the "looking forward to the next trickmessagealicethat was great trickdavidthat was great trickcarolinathat was great tricki can' wait to see your next trickcarolina this is logical error the syntax is valid python codebut the code does not produce the desired result because problem occurs in its logic if you expect to see certain action repeated once for each item in list and it' executed only oncedetermine whether you need to simply indent line or group of lines