0 votes
in Python by
Is indentation mandatory in Python?

1 Answer

0 votes
by

Yes, indentation is necessary for Python. Indentation helps specify a block of code. Thus, in a Python code, everything within loops, classes, functions, etc., is specified within an indented block. If your Python code isn’t indented correctly, there’ll be problems during the execution, and it will raise errors. 

...