6/17 - Now you try! (cubed_by_four)


#1



https://www.codecademy.com/courses/python-beginner-en-KAgt5/1/3?curriculum_id=4f89dab3d788890003000096


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


#2

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


#3

...

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


#4

#5

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