Python Syntax — a practical guide to Python syntax with clear examples you can reuse in real projects.
Python Tutorial Series (7/95). Prefer one article? Read the complete Python tutorial.
Short description
Python uses indentation (spaces) instead of braces. Consistent indentation is required for blocks.
Indentation example
# This is a comment
if True:
print('Indented block')
print('Outside block')