6 examples for python

{{ score }}
  # Serve the current directory over HTTP on port 8000 
python -m SimpleHTTPServer
        
{{ score }}
  # This is the python3 version of SimpleHTTPServer, the command to easily serve
# any directory over http. Use if you run Arch or a derivative. Alternatively,
# use on any distribution with python3 by replacing `python` with `python3`
python -m http.server
        
{{ score }}
  # Runs the line `print 'hello'` in Python and then returns.  
python -c "print 'hello'"
        
{{ score }}
  # Interactive command line interface for the language python
python
        
{{ score }}
  # use python as a powerfull calculator
python -qi -c "from math import *"
        
{{ score }}
  # your_comment_here
python -m SimpleHTTPServer