Dec-07-2017, 02:15 PM
Hi, Python error messages are usually pretty clear and give good hints, as is the case in your situation.
Code inside for block (and other blocks for that matter) needs to be indented one level, meaning you need to add 4 spaces before print.
This can be hard to notice if you write directly into an interpreter. I recommend writing code in a text editor and running it as a Python script.
Code inside for block (and other blocks for that matter) needs to be indented one level, meaning you need to add 4 spaces before print.
This can be hard to notice if you write directly into an interpreter. I recommend writing code in a text editor and running it as a Python script.