title: How should I call functions defined outside of the main function?
body: <p>So I'm fairly new to python and I am working on an algorithm and I have let's say 2 functions</p>
  
  <pre><code>func1(x)
  
  func2(x)
  </code></pre>
  
  <p>already defined outside the main function.</p>
  
  <p>Now I want to call these functions inside the main functions one nested inside the other</p>
  
  <p>Something like this</p>
  
  <pre><code>def funcmain(func1(func2(x)))
  </code></pre>
  
  <p>It obviously is not working I haven't been able to get it work anyway I want. Any tips on this?</p>
  
  <p><strong>Edit:</strong> What I meant to do is that I want to input a string, I want it to go through func2 first, then the return value from func2 to go through func1 and finally the return value of func1 to go through func main. I have tested each function separately and they are working as intended but I can't seem to get them interlinked together</p>