Python Grammar - Code Block

> Procedural Languages > Python > Python - Grammar (Package | Module)

1 - About

Language - Code Block (Grouping of Statement) in Python

Python follows the off-side rule. Instead of punctuation or keywords, it uses indentation to delimit program blocks of statement. (Pfff!)

The block of code in Python is indented with 4 spaces (tabs ??). A whitespace in Python is a space or a tab.

Advertising

3 - Documentation / Reference