title: What should I do if i don't want to get 'none' in out put after using a function
body: <p>I wrote this code which gives multiplication table .But in output I get '<em>none</em>' ,what should I do to not get '<em>none</em>'</p>
  <pre><code>def table(n):
      for i in range(1,6):
          j=i*n
          x = print(f&quot;{i} * {n} = {j}&quot;)
      return x
  print(table(int(input(&quot;enter the number :&quot;))))
  </code></pre>
  <p><strong>output</strong></p>
  <pre><code>enter the number :4
  1 * 4 = 4
  2 * 4 = 8
  3 * 4 = 12
  4 * 4 = 16
  5 * 4 = 20
  None
  </code></pre>
  <p>What should I do to not get '<code>None</code>'</p>