> Source URL: /resources/variables.guide
# Variables

A variable stores a value so you can use it later. You create one by assigning a value with `=`.

## Example

```python
name = "Alex"
age = 16
gpa = 3.7
is_student = True
```

## Use Variables

```python
print(name)
print(age + 1)
```

## Update a Variable

```python
score = 10
score = score + 5
score += 2
```

## Naming Rules

- Use letters, numbers, and underscores.
- Start with a letter or underscore, not a number.
- Use snake_case: `first_name`, `total_score`.
- Names are case-sensitive: `Score` and `score` are different.

## Multiple Assignment

```python
x, y, z = 1, 2, 3
```

## Swap Values

```python
a = 5
b = 9
a, b = b, a
```


---

## Backlinks

The following sources link to this document:

- [Variables Guide](/resources/resources.index.llm.md)
- [variables](/unit-1/projects/01-me-dot-py/me-dot-py.project.llm.md)
