python <for文>
下記の文は、
参考書と同じように入力したつもりだったのに
何故エラーになったのでしょうか…。
Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
name_list = ['taro','jiro']
for name in name_list:
... print(name)
File "<stdin>", line 2
print(name)
^
IndentationError: expected an indented block
回答1件
あなたの回答
tips
プレビュー