Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Python

Python Syntax

Learn Python indentation rules, comments, and basic statement structure.

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')

Leave a reply

Your email address will not be published. Required fields are marked *