请教大佬们关于for循环
今天看到for循环的操作,书中的操作例子如下:>>>magicians = ['alice','david','carolina']
>>>for magician in magicians:
>>>print(magician)
alice
david
carolina
然后我照书操作,却出现下面的错误:
>>> magicians = ['alice','never','david','carolina']
>>> for magicians in magicians:
...
File "<stdin>", line 2
^
IndentationError: expected an indented block
下面是书中的例子截图: