+ 2
What is mean Expected indentation on python program and how can solve this problem?
3 Respostas
+ 3
Remember to use spaces instead tabs. ;)
+ 2
When you use control structures or create a function, You need to put blank spaces after the level in which the block was defined. See below.
def function(arguments):
code
if condition:
code
and so on.
+ 2
this probably means you have the indentation wrong, make sure that
- blocks are indented
- all lines within a block are indented with the same number of spaces
- do not mix tabs and spaces in your code (best is to use spaces only)