Skip to content

Variables

Variables store values that you can use later.

x = 10
name = "oxygen"
active = True

You can use variables in expressions:

a = 5
b = 3
result = a + b
print(result)

Output: 8

  • Language Reference: the compact language syntax reference, including type annotations
  • Print: showing values in the console