Account
Categories

Simple Assignment Operator


Definition:

The Simple Assignment Operator (=) is used to assign a value to a variable.

The value on the right side is stored in the variable on the left side.

Syntax:

variable = value

Example:

x = 10  # 10 is assigned to x
print(x)

Output: