for i in range(-1,7,-2):
for j in range(3):
print(i,j)
write output
Answers
Answer:-1 0
-1 1
-1 2
1 0
1 1
1 2
3 0
3 1
3 2
5 0
5 1
5 2
exp:in first for loop we get the numbers -1,1,3 and 5 because -1,1,2,3,4,5,6 is the range given as 7 will not be included because it is the end point and now we have to jump twice so starting from -1,1,3,,5...then in second loop we get numbers upto 2 because 3 is the end point..so 0,1,2..and when we print (i,j) we get : every number in the first loop with every number in second loop
Answer:-1 0
-1 1
-1 2
1 0
1 1
1 2
3 0
3 1
3 2
5 0
5 1
5 2
exp:in first for loop we get the numbers -1,1,3 and 5 because -1,1,2,3,4,5,6 is the range given as 7 will not be included because it is the end point and now we have to jump twice so starting from -1,1,3,,5...then in second loop we get numbers upto 2 because 3 is the end point..so 0,1,2..and when we print (i,j) we get : every number in the first loop with every number in second loop
pls mark as brainlist...