I wrote this code which gives multiplication table .But in output I get 'none' ,what should I do to not get 'none'
def table(n):
for i in range(1,6):
j=i*n
x = print(f"{i} * {n} = {j}")
return x
print(table(int(input("enter the number :"))))
output
enter the number :4
1 * 4 = 4
2 * 4 = 8
3 * 4 = 12
4 * 4 = 16
5 * 4 = 20
None
What should I do to not get 'None
'