Times tables that skip 2 and 5

Fill in the blanks · Medium · §7.5, §7.6 Nested loops and the first math helper

Print the products of the times tables from 1 to 9, one table per line, but skip the 2 times table and the 5 times table. Fill in the two blanks.

Code with blanks

for i in range(1, 10):
    if ____:
        ____
    for j in range(1, 10):
        print(i * j, end=" ")
    print()

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.