title: How to call functions through an index selection
body: <p>I would like to know if it is possible to store and then call a function like you recall an indexed item from a list?</p>
  
  <p>In the code below, <code>x</code> represents an index number I have yet to determine as the final function in this program. At some point later, I will add the code to print the list with their indexed function, but for now I would like to get this program to work. Index 0 is labeled blank because entering a zero can be confusing for some users.</p>
  
  <p>The relevant code I am talking about:</p>
  
  <pre><code>print("Weights and Measurements will convert the Imperial measurments, into the corresponding metric measurement.")
  
  programSelect = eval(input("Please choose a program from the list below, with its corresponding index number (1-x):" ))
  programs = ["blank", "def tempConvert", "def distance"]
  </code></pre>
  
  <p>The idea is for the user to select a function by its index number. What I have no clue on doing is how to activate the individual functions like def tempConvert, or def distance and have their corresponding menus appear. </p>
  
  <p>Think of it like this.</p>
  
  <p>command prompt would read </p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>"Weights and Measurements will convert the Imperial measurments, into the corresponding metric measurement."</p>
        
        <p>"Please choose a program from the list below, with its corresponding index number (1-x):"</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>Say I enter 1 to select the def tempConvert function</p>
  
  <p>It then should show me the following from the def tempConvert function</p>
  
  <p>"Please use either Celsius or Fahrenheit"
  "Please enter a temperature for Celsius: "
  "Please enter a temperature for Fahrenheit: "</p>
  
  <p>I know that I need to work on the individual programs, as to prevent the user from inserting a temperature in both Celsius and Fahrenheit. For now, the program works on its own, but I want it to work within a larger program.</p>