title: Why I did not get two None statements here since both x and y are void functions?
body: <pre><code>def x():
      def y():
          print('hi there this is y function')
      y()
      print('this is function x')
  
  print(x())
  </code></pre>
  <p>output :</p>
  <pre><code>hi there this is y function
  this is function x
  None
  </code></pre>
  <p>I was expecting None to be printed after the function x calls y since y is a void function</p>
  <p>expected output:</p>
  <pre><code> hi there this is y function
   None
   this is function x
   None
  
  
  
     
  </code></pre>