Python Indentation
Categories: Python
Unlike C++ or Java, Python does not use curly braces for indentation.
Instead, Python mandates indentation. At this point, our inner monsters are laughing at the lazy programmers around us.
>>> if 2>1:
print("2")
There are no strict rules on what kind of Python indentation you use. But it must be consistent throughout the block.
Although, four whitespaces are usually preferred, and tabs are discouraged.