Lines of Python code are grouped into blocks.
Three rules for code blocks:
- Blocks begin when indentation increases
- Blocks can contain other blocks
- Blocks end when indentation decreases to zero or containing block’s indentation
Lines of Python code are grouped into blocks.
Three rules for code blocks: