**Set-up**

I'm looking for all the integer pairs `(x,y)` in 2 closed sets: `[822,2000]` and `[506,1231]` such that `x/y=1.624`.

---

**Code so far**

I tried,

```
a = [[(x,y)] for x in range(822,2001) and y in range(506,1232) if x/y = 1.624]

```

But this gives a `SyntaxError: invalid syntax` pointing to the `=` in the code. 

And if I do,

```
a = [[(x,y)] for x in range(822,2001) and y in range(506,1232) if x/y <= 1.624]

```

I get `NameError: name 'y' is not defined`. 

How do I solve this?