This is the code for the Safari Live Training - Introduction to Python Programming presented by Arianne Dee
Before the class, please follow these instructions:
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
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/intro-to-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 intro-to-python-master folder to a convenient location
-
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.7.1 or higher (whichever version you just downloaded)
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