I don't know what I did wrong:

doubles_by_3 = [x*2 for x in range(1,6) if (x*2) % 3 == 0]

# Complete the following line. Use the line above for help.

x=(4,16,36,49)

even_squares = [x**2 for x in range (1,40) if (x**2) % 3==0]

print even_squares

I don't know what I did wrong:

doubles_by_3 = [x*2 for x in range(1,6) if (x*2) % 3 == 0]

x=(4,16,36,49)

even_squares = [x**2 for x in range (1,40) if (x**2) % 3==0]

print even_squares

If you are looking for even squares you are checking if the number is divisible by three.

`if (x**2) % 3==0`

To check for even

`if (x**2) % 2==0`

so this is my new formula:

doubles_by_3 = [x*2 for x in range(1,6) if (x*2) % 3 == 0]

even_squares=[4,16,36,49,64]

even_squares=[x**2 for x in range (1,49) if (x**2) % 2==0]

print even_squares

but now it's saying Oops, try again. even_squares contains 144, but should not.

here's what it printed:

[4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 484, 576, 676, 784, 900, 1024, 1156, 1296, 1444, 1600, 1764, 1936, 2116, 2304]

None

Should be

`even_squares = [x**2 for x in range(1,11) if (x**2) % 2 == 0]`

You go to large in your range and that's all.