title: How to print numbers in steps using function python
body: <p>Am trying to write a function to print numbers in steps.Here is my code </p>
  
  <pre><code>def steps(num):
             v = num
             for i in range(1, v+1):
                  print("   "*i + str(i)*3)
  print(steps(3))
  </code></pre>
  
  <p>The result appears as</p>
  
  <pre><code> 111
        222
           333
  None
  </code></pre>
  
  <p>I am trying to get rid of the "none" word any help? Note please, i don't want to get rid of the print statement in  "print(steps(3)), any other method or solution will be welcomed.</p>