Python Syntax
Indentation in Python
Python Indentation refers to the use of whitespace (spaces or tabs) at the beginning of a code line. It is used to define code blocks. Indentation is crucial in Python because, unlike many other programming languages that use braces "{}" to define blocks, Python uses indentation. It improves the readability of Python code, but on the other hand, it becomes difficult to rectify indentation errors. Even one extra or less space can lead to an indentation error.
if 10 > 5:
print("This is true!")
print("I am tab indentation")
print("I have no indentation")