Indentation is necessary for python. It specifies a block of code. All code within loops classes functions etc within an indented block. It is usually done using four space characters. If your code is not indented necessarily. It will not execute accurately and will errors as well.
Home Is indentation required in Python