6/17 - Now you try! (cubed_by_four)



The error message I'm getting is "Oops, try again. It looks like your list has the wrong value at index 0. It should be 8."

The challenge wants a list of squared numbers between 1 and 10, but only if the result is evenly divisible by 4. My first result in the list is 4, but the error says it's supposed to be 8?

My code below:

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

print cubes_by_four


cubes is till the power of 3 (^3) you have till the power of 2 (^2)



I'm a dumb, thanks for the quick reply.



just a silly mistake, it can happen to the best of us