#what is the output of the following code for i in range(3): for j in range(2): print(i+j) #total number of iterations is 6 (3*2) #i = 0, 1, 2 #for each value of i #the inner loop runs: j=0,1 #i=0 #j=0 #0+0=0 #i=0 #j=1 #0+1=1 #i=1 #j=0 #1+0=1 #i=1 #j=1 #1+1=2 #i=2 #j=0 #2+0=2 #i=2 #j=1 #2+1=3 #Final answer #0 #1 #1 #2 #2 #3