# nested loops in python i = 0 while i<10: j = 0 # what will happen if this is outside the outer loop? while j<10: print i, j j += 1 # j loop i += 1 # i loop # what will this print? # heap shape: i = 1 while i<=20: j = 0 while j