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
Check
python --version
python2 --version
python3 --version
Python Database Connectivity
Python Database Connectivity
Navigating your OS with Python
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
Bibliography
https://www.python.org/ https://www.w3schools.com/python/default.asphttps://www.oreilly.com/live-training/courses/python-the-next-level/0636920077527/
https://docs.python-guide.org/dev/virtualenvs/
https://www.python.org/dev/peps/pep-0394/ (PEP 394 -- The "python" Command on Unix-Like Systems)
https://www.appdynamics.com/blog/engineering/see-results-fast-why-python-isnt-just-for-beginners/
https://www.youtube.com/watch?v=wY1c9Ci7p2U (A Python Primer for SQL Server DBAs)
IDEshttps://replit.com/
Python 2 End of Lifehttps://www.python.org/dev/peps/pep-0373/ (PEP 373 -- Python 2.7 Release Schedule)https://www.python.org/dev/peps/pep-0404/ (PEP 404 -- Python 2.8 Un-release Schedule)
https://docs.python-guide.org/dev/virtualenvs/
https://www.python.org/dev/peps/pep-0394/ (PEP 394 -- The "python" Command on Unix-Like Systems)
https://www.appdynamics.com/blog/engineering/see-results-fast-why-python-isnt-just-for-beginners/
https://www.youtube.com/watch?v=wY1c9Ci7p2U (A Python Primer for SQL Server DBAs)
IDEshttps://replit.com/
Python 2 End of Lifehttps://www.python.org/dev/peps/pep-0373/ (PEP 373 -- Python 2.7 Release Schedule)https://www.python.org/dev/peps/pep-0404/ (PEP 404 -- Python 2.8 Un-release Schedule)