Loops inside loops
Watch it run · 1 of 4
A 2 × 3 block of stars
1for r in range(2):2 for c in range(3):3 print("*", end="")4 print()
Memory
int r
0
Output
(nothing yet)line 1Row 0 starts.
step 1 of 7
Watch it run · 1 of 4
1for r in range(2):2 for c in range(3):3 print("*", end="")4 print()
Memory
int r
0
Output
(nothing yet)line 1Row 0 starts.