title: Python Code is not working on Browser
body: <p>i am new to python and anyhow i managed to install Python on my Linux shared hosting. When I am trying to execute Python code in Shell terminal its working fine but i am not able to execute this code in browser directly and it just shows python code as text.</p>
  
  <p><strong>In Shell:</strong> <code>python public_html/index.py</code>   (Working)</p>
  
  <p>But if i open same file in browser it doesnt execute code. </p>
  
  <p><strong>index.py</strong></p>
  
  <pre><code>#!/usr/bin/env python
  
  
  print("Content-Type: text/html\n")
  
  print("Hello World")
  </code></pre>
  
  <p>I searched everywhere on internet but couldnt find answer, I also installed Django but same problem.  please help me :(</p>
  
  <p>I have not done any edit to .htaccess, if here i need any please tell me.</p>
  
  <p>1 new line added in <strong>.bashrc</strong></p>
  
  <pre><code>alias python='~/bin/python'
  </code></pre>
  
  <p>Also I am not sure how my shebang code must look like. Just i saw <code>#!/usr/bin/env python</code> as commonly used SHEBANG code and used in my script.</p>