Answer to Problem 10

Answer to Looping Problem 10
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
for i in range(1, 10):
    for j in range(1, 10):
        # Extra space?
        if i * j < 10:
            print(" ", end="")

        print(i * j, end=" ")

    # Move down to the next row
    print()