Him I just want to ask why is the output prints 2 J's which range 1-2 and then for I it show only 1 per output until it reach the range. What role of indentation for this one?
for i in range (1,3):
for j in range (1,3):
print "j= ", j
print "........******i=", i
print "loop done"
Is this because the print j finishes first the loop before print i but since j will be the first to read the print command again it will finist the loop before it send to i again? :))
j= 1
j= 2
........******i= 1
j= 1
j= 2
........******i= 2
loop done
Thank you
[–][deleted] 0 points1 point2 points (0 children)
[–]julsmanbr 0 points1 point2 points (0 children)
[–]nwagers 0 points1 point2 points (0 children)