Python

python    # Run default python

python2   # Run python 2.x

python3   # Run python 3.x

See also: https://www.python.org/dev/peps/pep-0394/

Check

python --version

python2 --version

python3 --version

Python Database Connectivity

Navigating your OS with Python

python

import os

os.getcwd()

os.chdir("MyPython")

os.listdir('.')

['file1.txt', 'file2.py', 'file3.csv']

To start python 

To import the os commands

Get Current Working Directory (returns a String)

Change Directory to MyPython (a subdir of your current dir)

List files in current '.' directory

Example return array from listdir function

Bibliography