title: Why does my function not execute in python code?
body: <p>I am relatively new to Python an was using Youtube videos to study. I wrote a small script on my own as follows.</p>
  
  <pre><code>def main()
      func1()
      func2()
  
  def func1():
  #defininition goes here
  
  def func2():
  #definition goes here
  
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>Only the <code>func1()</code> is executing. I want both of them to execute. Can someone please tell me how to do it.</p>
  
  <p>Thanks.</p>