# Pythagorean Theorem

*noun*

say it: **“puh-thag-uh-REE-un THEER-um”** **/pəˌθæɡəˈriən ˈθirəm/**

The rule that in a right-angled triangle, the square of the longest side equals the sum of the squares of the other two sides.

## What is the **Pythagorean theorem**?

The **Pythagorean theorem** says that in a right triangle, the long side squared equals the other two sides squared
and added: 3² + 4² = 5². It's how straight-line (Euclidean) distance is worked out: the differences in each feature
are the short sides.

```python
import math
print(math.sqrt(3 ** 2 + 4 ** 2))   # 5.0
```

## In a sentence

- “Every straight-line distance on a map comes back to the **Pythagorean theorem**.”
- “The **Pythagorean theorem** turned a 3-gram and 4-point difference into a distance of 5.”

Level: Apprentice · [More AI Basics terms at this level](https://www.ask-codey.com/glossary?category=ai&level=2)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/pythagorean-theorem
