Variables & data types

A variable is a name that points at a value, and Python infers the type for you.

Assign with `=`: name on the left, value on the right. The four everyday types are `str` (text in quotes), `int` (whole number), `float` (decimal) and `bool` (`True`/`False`).

name = "Ada"     # str
age = 36         # int
print(name, "is", age)

More lessons in Python basics