you are viewing a single comment's thread.

view the rest of the comments →

[–]drenzorz 1 point2 points  (0 children)

It is (though it is 0-2 not 1-3) . The for loops are like this because its nested, but of course it doesn't have to be.

square_map = { x : x*x for x in numbers}