9.3) Nested Loops
You can use loops within loops, we call these nested loops. Here’s an example:
for i in (1,2,3): for j in (9,8): print i*j 9 8 18 16 27 24
You can use loops within loops, we call these nested loops. Here’s an example:
for i in (1,2,3): for j in (9,8): print i*j 9 8 18 16 27 24