+ 1
Why is the answer 8
for i in range(0,2): for i in range(0,4): print(i)
3 Respostas
+ 8
If the print(i) is in the inner loop, the output should be the following 8 numbers:
0
1
2
3
0
1
2
3
Perhaps the original question was asking how many numbers will be printed?
This would be 8.
The outer for loop will iterate 2 times and the inner loop will iterate 4 times for each outer loop .
Therefore, 2 * 4 is 8.
+ 3
Ahhhhhhhhh the question is how many numbers will this code output? I didn't see.....Thank you so much!!!
+ 1
The game answer is 8. I can't understand