title: Python functions calling functions inside functions
body: <p>In Python, say I have the following code:</p>
  <pre><code>def func0():
      print(&quot;This is func0&quot;)
      
  def func1():
  
      print(&quot;func1 calls func0&quot;)
      func0()
  
  
  def func2():
      def func21():
          print(&quot;This is func21&quot;)
  
      print(&quot;func2 can call func0&quot;)
      func0()
  
      print(&quot;It can also call funct21&quot;)
      func21()
  
  
  func_0()
  func_1()
  func_2()
  </code></pre>
  <p>Is there a way to get func1() to call func21()? Or do I simply need to pull func21() out of func2()?</p>
  <p>I couldn't find anything online, thought I'd try here.</p>
  <p>TIA!</p>