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

print cubes_by_four

# 6/15 what is wrong?

**rydan**#2

this line

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

should be

`cubes_by_four=[x**3 for x in range(1,11) if (x**3)%4==0]# no comma before the for`

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

**webedge**#4

ERROR

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

print cubes_by_four

File "python", line 1

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

^

SyntaxError: invalid syntax

???

**rydan**#5

Your code should rather be this

```
cubes_by_four = [c**3 for c in range(1,11) if (c**3)%4 == 0]
# ^<->^
# missing that
# for statement
# with c as the iterator
```

**mohammed7690**#6

I did the way I use to work out the cube numbers back in school. it worked though:

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

I just curious.. the instruction said `1 through 10 only`

, but here we wrote like this `range(1,11)`

rather than `range(1,10)`

..any one can explain ?