0

What is IndentationError: expected an indented block ?

it occurs when I tired to run a class function it gives error at def __init__(self,name):

27th Jan 2017, 10:40 AM
Shubham Ingle
Shubham Ingle - avatar
2 Antworten
+ 1
I suppose you're using Python. Python really cares about indentation. If you miss a space, it cause error like this. I suggest you to review all the code and figure out where is the space you missed. It occurs also when you mix spaces and tabs. You have to use only tabs or only spaces.
27th Jan 2017, 11:01 AM
Elena Mascolo
Elena Mascolo - avatar
0
thanks
27th Jan 2017, 11:01 AM
Shubham Ingle
Shubham Ingle - avatar