Install Editor, Sublime
Sublime Text: http://www.sublimetext.com/
other suggested editors:
Visual Studio Code
PyCharm (I was told you can download a free student account)
Visual Studio Code
PyCharm (I was told you can download a free student account)
Python 3
In this class we will be using Python3
The other popular version of Python is 2, however Python3 is not backward compatible with Python2 syntax, hence please do not assume that if you run the program in Python2 successfully it will also run in Python3. This link has comprehensive list of differences between Python2 and Python3.
In this class we will be using Python3
The other popular version of Python is 2, however Python3 is not backward compatible with Python2 syntax, hence please do not assume that if you run the program in Python2 successfully it will also run in Python3. This link has comprehensive list of differences between Python2 and Python3.
Install Python, Anaconda
NOTE: *nix OS systems run the python natively, hence you can skip to step 4 and see if you already have Python. Anaconda also provides package management that we will touch upon later in the course, so it will not hurt if you install it anyway.
We will use Anaconda Installer for our class. Follow the steps below to install Anaconda:
1. Download Anaconda from one of the links below: 2. Run the installer. Accept all defaults during the installation
3. Upon installation completion, restart your computer
We will use Anaconda Installer for our class. Follow the steps below to install Anaconda:
1. Download Anaconda from one of the links below: 2. Run the installer. Accept all defaults during the installation
3. Upon installation completion, restart your computer
4. To verify that the python was successfully installed, in Terminal (PowerShell), type python:
$ python Python 2.7.16 (default, Jan 26 2020, 23:50:38) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
if you see version 2 in the feedback, exit and type python3:
>>> exit() Gulas-MacBook-Pro:~ gulanurmatova$ python3 Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
If you got the output similar to the one above - you are in interactive python shell, you are all set.
If you get lost in your terminal
this section covers common unix commands:
pwd
ls
cd
mkdir
touch
pwd
ls
cd
mkdir
touch