Python uses whitespace indentation, rather than curly brackets or keywords, to delimit blocks. An increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block. Thus, the program's visual structure accurately represents its semantic structure. This feature is sometimes termed the off-side rule. Some other languages use indentation this way; but in most, indentation has no semantic meaning. The recommended indent size is four spaces.
python uses whitespace indentation rather than curly brackets or keywords to delimit blocks an increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block thus the program's visual structure accurately represents its semantic structure this feature is sometimes termed the off-side rule some other languages use indentation this way; but in most indentation has no semantic meaning the recommended indent size is four spaces