Language Delimiters

= — assignment

Binds a target to a value in assignment syntax. Also separates a keyword argument name from its supplied value and a parameter from its default. Equality comparison uses == instead.

Formal Syntax & Structure

python syntaxpython
=

Return Value

Not applicable

Grammar token; the enclosing construct determines any result.

Working Example

Example Snippetpython
a = b = 7print(a, b)
Python Reference