6. The right number in the "Wrong location"


So at number six in, Advanced topics in Python, their is a fairly easy project telling you to take the numbers 1-10 square them and see if they are divisible by four. If they are you put them into a list, easy.

cubes_by_four = [ n**2 for n in range(1,11) if n**2 % 4 == 0]
print cubes_by_four

[4, 16, 36, 64, 100]
So you might be asking what is the problem, this is
It looks like your list has the wrong value at index 0. It should be 8.

The first square that is divisible by four is 2 by 2 not 2.8 by 2.8
If I'm doing something wrong please notify me


so i think you misunderstand something ; it's cubes_by_four so to calculate cube of x , we code x**3 not x**2


I'm so stupid. Thank you


Totally forgot about cubes, not squares thank you again