I mean the list: [j*2 for j in range(0, 11/2)] Does not give you the item "10" in the list.
So it skips 10...
So it skips 10...
if you do sum(range(0,10,2)), 10 isn't reached either.
why are we having this discussion?
[j2 for j in range(0, (11+1)/2)]
Your code is wrong.
sum(range(0,11,2)) works as expected, [j*2 for j in range(0, (11)/2)] does not.
You seem like you have issues.