1. Upgrading and Installing Python 3.x on Windows and the Mac
Download Python 3.x here: https://www.python.org/downloads/.
2. Using Python for the First Time
Windows Users
We’ll use Windows PowerShell to perform Python command-line functions.
- Option 1: Search for it with Cortana, right mouse click and pin it to your task bar
- Option 2: Alternatively, paste the following into windows file explorer:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
. Then open and pin it - Type
python
to open the Python shell. Thenprint("hello world")
and press enter
Mac Users
Open your terminal and type python3
to open the Python shell. Now type print("hello world")
and press enter
3. Text Editor
- Download a copy of Sublime Text 2
- Create and save a file called
deleteMe.py
- Do:
Preferences -> Settings - More -> Syntax Specific - User
. A file calledPython.sublime-settings
should open - Paste:
{ "tab_size": 4, "translate_tabs_to_spaces": true }
- Do:
Preferences -> Settings - User
. A file calledPreferences.sublime-settings
should open - Replace first line with the blackboard theme:
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme,
“ - Delete:
deleteMe.py