+ 2

What is mean Expected indentation on python program and how can solve this problem?

27th Jan 2017, 1:05 PM
M.BALAVIGNESH
M.BALAVIGNESH - avatar
3 Answers
+ 3
Remember to use spaces instead tabs. ;)
27th Jan 2017, 2:10 PM
Reginaldo Junior
Reginaldo Junior - avatar
+ 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.
27th Jan 2017, 1:54 PM
Reginaldo Junior
Reginaldo Junior - avatar
+ 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)
27th Jan 2017, 10:59 PM
ifl
ifl - avatar