2: Python Versions
There are actually two versions of Python on this machine. We ran the last script using the defaultpython
executable, which is Python version 2
. We'll instead want to use Python 3
, which we can access with the python3
executable.
Instructions
- Type
python3 script.py
to run the filescript.py
using python 3.
/home/dq$ python3 script.py
Welcome to a Python script