# Variables — Python Fundamentals: From Basics to Async

Source: https://www.skillbyai.com/en/python/py-variables

> Create variables by assignment without type declarations, unpack values and follow snake_case naming.

## Just assign

The type follows the value, and can change.

```python
age = 25          # int
price = 9.99      # float
name = "Ada"      # str
is_active = True  # bool
x = 10
x = "now text"    # allowed
```

## Multiple assignment

Handy for unpacking and swapping.

```python
a, b, c = 1, 2, 3
a, b = b, a       # swap
```

## Naming

`snake_case` for variables and functions; `UPPER_CASE` for constants (by convention only).
