This is the code for the Safari Live Training - Object-Oriented Programming in Python presented by Arianne Dee
Note: If you're looking for the project code for a specific date in the past, look for the specific class here
Before the class, please follow these instructions:
- Install Python
- Check that Python was installed properly
- Install PyCharm
- Download the code
- Download the resources
Go to https://www.python.org/downloads/
Click the yellow button at the top to download the latest version of Python.
Follow the prompts and install using the default settings.
The default settings don't add Python to your PATH so your computer doesn't know where to look for it when Python runs (for some inexplicable reason).
Follow the instructions here: Windows Python installer instructions
Follow the instructions here: Add Python to PATH variable in Windows
-
Open the Command Prompt application in Windows or Terminal on Mac or Linux
-
Type
python --version
and press enter -
Type
python3 --version
and press enter -
One or both of those commands should print a Python version of 3.6 or higher (whichever version you just downloaded). If it doesn't, you have to follow instructions to add Python to your PATH variable.
Note:
You can now type just the python
or python3
command
in Command Prompt or Terminal
to run the Python interpreter.
You can also run a .py file by running
python filename.py
Download here: https://www.jetbrains.com/pycharm/download/
Install, open, and use the default settings.
If you're viewing this on GitHub already, stay on this page. Otherwise, go to the GitHub repository: https://github.com/ariannedee/oop-python
Clone the repository.
- Click the "Clone or download" (green) button at the top-right of the page
- Click "Download ZIP"
- Unzip it and move the oop-python-master folder to a convenient location
When you have signed in to the class, the Resources widget will have PDFs for the slides and for a resource package that has PyCharm shortcuts, links, and a Python 2 to 3 comparison
Yes. There are not many differences for this class.
Jupyter notebooks are not ideal since we'll be working from multiple folders throughout the class.
Other IDEs like VS Code, Atom, and Spyder will work, but they are only recommended if you are already know it and are comfortable navigating to different files and running commands in the command line. If it has syntax highlighting for Python, that is ideal.
On a Mac:
- Go to PyCharm > Preferences
On a PC:
- Go to File > Settings
Once in Settings:
- Go to Project: oop-python > Project Interpreter
- Look for your Python version in the Project Interpreter dropdown
- If it's not there, click gear icon > Add...
- In the new window, select System Interpreter on the left, and then look for the Python version in the dropdown
- If it's not there, click the ... button and navigate to your Python location
- To find where Python is located, look in these directories
- You may have to search the internet for where Python gets installed by default on your operating system
Yes, email arianne.dee.studios at gmail.com if you have any questions or would like to set up some remote training.