Python is a general purpose programming language used for several courses at the university. As of Fall 2016, we use Python 3.5. Python is available in EHS 117 and EHS 119, along with a full-featured integrated development environment.
Depending on your operating system, you may already have Python 3 installed.
From a shell ("Terminal" on OS X or "Command Prompt" on Windows), type
python3 at the prompt and press enter.
If you receive a "command not found" or similar error, you'll need to install Python.
You may also download and install Python on your personal machine (available for Windows, Linux, and OS X). Take care to download the correct version number (e.g., Python 3.5.2, see above) for your operating system.
After confirming you can run python3 on your computer, proceed to the next step.
Run a shell.
At the shell prompt, type
python3 and press enter.
Verify that the correct Python version is reported.
For example, on OS X:
$ python3 Python 3.4.3 (default, Aug 28 2015, 21:00:25) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
And on Ubuntu 14.04:
$ python3 Python 3.4.0 (default, Jun 19 2015, 14:20:21) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>>
Type the following at the >>> prompt, pressing enter after each line:
name = 'world' print('Hello, ' + name + '!')
Verify that your program runs without errors and displays the expected output.
This page was last modified on 2016-08-27 at 12:45:49.
George Fox University · 414 N Meridian St · Newberg, Oregon 97132 · 503-538-8383
Copyright © 2015–2018 George Fox University. All rights reserved.
Your IP: 188.8.131.52