Language Delimiters
; — semicolon
Separates simple statements on one logical line. It does not separate arbitrary compound statements; separate physical lines are usually clearer.
Formal Syntax & Structure
python syntaxpython
;Return Value
Not applicable
Grammar token; the enclosing construct determines any result.
Working Example
Example Snippetpython
a = 2; b = 3; print(a + b)