Jan-21-2021, 03:33 PM
Quote:Now I have tried to replace each print statement in the function print_multiples(n)but cannot get the function to work. Can anyone please advise what to do.You misunderstood the instructions. The print statement that you want to replace is the one on line 6, like this :
n = 3 def print_multiples(n): for i in range(1, 7): print(n * i, end=" ") print() for i in range (1, 7) : print_multiples(i)