title: Python: How to call and run python scripts from desktop by giving command in python editor?
body: <p>I have two python script files in my desktop folder and I would like to run based on if statement. For example: If calling 'Ram' and 'Sam' then run python script file_1 and for 'Mohan' run python script file_2. Is there any way where I can call and run the scripts by giving some command based on if statement? Below is the path of files and dataframe.</p>
  
  <pre><code>file_1 = 'c:/users/rec/name/file_1.py'
  file_2 = 'c:/users/rec/name/file_2.py'
  
  df = {'name': ['Ram','Mohan','Sam'], 'salary':[1000, 2000, 1500]}
  </code></pre>