ariannedee/oop-python
À propos
Object-Oriented Programming in Python
Outils de développementProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalObject-Oriented Programming in Python Live Training
This is the code for the O'Reilly Live Training - Object-Oriented Programming in Python presented by Arianne Dee
Before the class, please follow these instructions:
- Install Python
- Check that Python was installed properly
- Install PyCharm
- Download the code
- Download the resources
Set up instructions
1. Install Python 3.8 or higher
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.
2. Make sure that Python is properly installed
Open the PowerShell application in Windows or Terminal on Mac or Linux
Type
python --versionand press enterType
python3 --versionand press enterType
py --versionand press enter
At least one of those commands should print a Python version of 3.8 or higher (whichever version you just downloaded).
Note:
You can now type just the python, python3 or py command
in PowerShell or Terminal to run the Python console.
You can also run a .py file by running
<python cmd> filename.py
3. Download PyCharm
Download here: https://www.jetbrains.com/pycharm/download/
Install, open, and use the default settings.
Note: It comes with a 30-day free trial of professional features. These are not needed for the course and the free features (or the Community edition) will suffice.
4. Download the course files
If you're viewing this on GitHub already, stay on this page. Otherwise, go to the GitHub repository: https://github.com/ariannedee/oop-python
If you know git:
Clone the repository.
If you don't know git:
- Click the "Clone or download" (green) button at the top-right of the page
- Click "Download ZIP"
- Unzip it and move the oop-python-main folder to a convenient location
5. At the beginning of class, download the resources
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
FAQs
Can I use Python 2?
No, nobody should be using Python 2 anymore.
Can I use a different code editor besides PyCharm?
Jupyter notebooks are not ideal since we'll be working from multiple folders throughout the class.
Other IDEs like VS Code, Atom, and Spyder are fine, 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.
PyCharm can't find Python 3
- On the bottom right of PyCharm, click on the Python Interpreter and select one from the list
- If it's not there, click Add New Interpreter > Add Local Interpreter...
- Try to select an existing Python system interpreter and then look for the Python version in the dropdown (exact instructions differ depending on PyCharm version)
- If it's not there, click the ... or folder icon 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
Explorer des projets similaires
Chargement…