ubuntu run python script on terminal code example
Example 1: running python script from terminal ubuntu
python <filename.py>
Example 2: how to run python in terminal
#For Python 3:
$ python3 helloworld.py
#For Python 2:
$ python helloworld.py
python <filename.py>
#For Python 3:
$ python3 helloworld.py
#For Python 2:
$ python helloworld.py