title: User input to call function
body: <p>I am trying to have the user input call a function.</p>
  
  <p>My code: </p>
  
  <pre><code>class the_proccess():
  
      the_route = input("Which function do you want to use? \n\n 1) The first one. \n\n 2) The second one. \n\n 3) The first one and then the second one. \n\n Please enter the corresponding number and hit enter &gt;&gt;&gt;&gt;&gt; ")
  
      if the_route == 1:
          first()
      elif the_route == 2:
          second()
      elif the_route == 3:
          first()
          second()
  
      def first():
          print("First function")
  
      def second():
          print("Second function")
  </code></pre>
  
  <p>However, when I select the option the process stops. I'm not quite sure what I am doing wrong and this is my first time trying to do something like this. </p>