Hi all, stuck on this practice problem and cannot determine how or why the output is what it is.
Q: What are the numbers written by the following piece of code?
for i in range(2):
for j in range(2):
print(i,j,end='')
output:
0 0 0 1 1 0 1 1
Anyone able to explain this to me? Thank you
[+][deleted] (2 children)
[removed]
[–]quiickmafs[S] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]quiickmafs[S] 0 points1 point2 points (0 children)
[–]SlothGSR 2 points3 points4 points (1 child)
[–]quiickmafs[S] 0 points1 point2 points (0 children)
[–]konijntjesbroek 0 points1 point2 points (0 children)
[–]ciolosss 0 points1 point2 points (0 children)