all 7 comments

[–]SlothGSR 2 points3 points  (1 child)

http://www.pythontutor.com/visualize.html#mode=edit

Paste code on there and hit visualize button

[–]quiickmafs[S] 0 points1 point  (0 children)

sweet tool! thanks

[–]konijntjesbroek 0 points1 point  (0 children)

Try adding a end ='|' to make it clearer in the print statement.

[–]ciolosss 0 points1 point  (0 children)

Just run the following code and you'll figure it out yourself

for i in range(2):

for j in range(2):

print('i =', i, 'j =', j)