List comprehension syntax [solved]


#1

hi
having an issue with this one :

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

this dude returns 'Oops, try again. even_squares should contain 36, but does not' all the time even though I am pretty positive this is correct


#2

UPD : sorry, I am blind... Didn't see ** as an issue
Thanks guys


#3

Aii.. Good you saw that.

Have fun coding! :slight_smile: