Python - 17

Python - 17: Nested Loops

Loops can go inside other loops. These are called nested loops.

✦ Python Editor
▶ Output

👀 Show Example Solution
for row in range(4):

    for column in range(4):
        print("#", end=" ")

    print()

for number in range(1, 4):

    for multiplier in range(1, 6):
        print(number * multiplier)

    print("Done")