https://projecteuler.net/problem=9

A Pythagorean triplet is a set of three natural numbers, $a < b < c$, for which,

$$a^2 + b^2 = c^2$$For example, $3^2 + 4^2 = 9 + 16 = 25 = 5^2$.

There exists exactly one Pythagorean triplet for which $a + b + c = 1000$. Find the product abc.

I first created two lists, A and B, and set them to all values up to 1000.

```
In [50]:
```A = range(1000)
B = range(1000)

```
In [51]:
```for n in A:
for m in B:
if m > n:
a = m ** 2 - n ** 2
b = 2 * m * n
c = m ** 2 + n ** 2
if a + b + c == 1000:
print(a * b * c)

```
```

```
In [ ]:
``````
# This cell will be used for grading, leave it at the end of the notebook.
```