First page Back Continue Last page Overview Graphics

Assignments

i = 42

The equal sign in the above statement shouldn't be mistaken for a mathematical equal sign.

The equal sign means: the value 42 will be assigned to the variable i, i.e. after the assignment the variable will have the value 42

>>> i = 42

>>> i = i + 1

>>> print(i)

43

>>>

>>> οχι_καλα = """Possible, but not a good idea!"""

>>> print(οχι_καλα)

Possible, but not a good idea!