title: How to Create a Menu in Python that runs specific scripts when selected
body: <p>I'm fairly new to Python and have had an idea but am unsure how to execute it.</p>
  <p><strong>I would like to create a python script that acts as a menu to run other scripts. In the sense that let's say the file is called menu.py. The script would look something like this:</strong></p>
  <pre><code>**Menu**
  
     
  
       print(&quot;Which Script would you like to run&quot;)
      #1) Convert.py
      #2) Analyse.py
      #3) Visualise.py
  
  #when selecting 1,2 or 3, the specified script is run.
  #after selection it reads &quot;You selected *script*&quot; and then runs the selected script
  </code></pre>
  <p>I have researched and found basic menus in python that run print statements upon selection but nothing such like running a script when selected. I have seen examples such as:</p>
  <pre><code>menu = {}
  menu['1']=&quot;Add Student.&quot; 
  menu['2']=&quot;Delete Student.&quot;
  menu['3']=&quot;Find Student&quot;
  menu['4']=&quot;Exit&quot;
  while True: 
    options=menu.keys()
    options.sort()
      for entry in options: 
        print entry, menu[entry]
  
      selection=raw_input(&quot;Please Select:&quot;) 
      if selection =='1': 
        print &quot;add&quot; 
      elif selection == '2': 
        print &quot;delete&quot;
      elif selection == '3':
        print &quot;find&quot; 
      elif selection == '4': 
        break
      else: 
        print &quot;Unknown Option Selected!&quot; 
  </code></pre>
  <p>But it doesn't run scripts more so, print statements.</p>
  <p>I'm using Python3 and VisualStudioCode on Linux Mint.</p>
  <p>Any advice to point in the right direction would be great. Thanks!</p>