title: Import python script in Flask to make it shareabale
body: <p>I have a python script <code>Flow.py</code> that has a function <code>choked()</code> which takes user input and performs a set of algebraic calculations and prints the results (see sample code below). I want to make this file shareable with my colleagues.</p>
  <p>I tried it two ways:
  1 - Making it a .exe file
  2 - Using Flask</p>
  <p><strong>Problems faced</strong>:
  1 - For .exe file, I tried <code>cx_Freeze</code> and <code>pyinstaller</code>, but both gives error. The executable file closes immediately upon clicking it.
  2 - In Flask, upon running in shell, it doesn't give any error, however on running on localhost, nothing happens</p>
  <pre><code>from flask import Flask 
  
  app = Flask(__name__)
  
  @app.route('/')
  def choked():     #this is my Flow.py
      
      e1 = input('Enter value 1: ')  # var type = str
      e2 = input('Enter value 2: ')  # var type = str
      e3 = input('Enter value 3: ')  # var type = str
          
      G = e1*e2*e3
  
      print ()
      
  if __name__ == &quot;__main__&quot;:
      app.run(host='0.0.0.0', port='8000', debug=True)
  </code></pre>