how to run python server in terminal code example
Example 1: start a simple http server python3
python3 -m http.server 8000
Example 2: how to run python in terminal
#For Python 3:
$ python3 helloworld.py
#For Python 2:
$ python helloworld.py
python3 -m http.server 8000
#For Python 3:
$ python3 helloworld.py
#For Python 2:
$ python helloworld.py