top of page

Starting With Python

  • chrisbentley349
  • Jan 2
  • 1 min read

Updated: Mar 26

This class supports two ways of using Python...


Method #1: use an online Python interpreter: https://www.online-python.com


Pros:

  1. no download or installation needed

  2. you can use any computer or handheld device with internet access


Cons:

  1. no interactive keyboard input

  2. does not easily support generating animations



Steps:


a) The online-python web site will show the following interface:


ree

b) Download the following file and cut and paste it into the top pane:



c) Press the "Run" button and wait until program runs to completion... the button will turn red and then back to green and it will print out a bunch of numbers.


ree

d) find the .ppm file in your downloads folder and double-click to open it:


ree


Method #2: download Python 3 onto your local machine (Mac or PC)


Pros:

  1. supports interactive keyboard input

  2. supports generating animations


Cons:

  1. requires download and installation onto local machine

  2. need to futz with Mac or PC specific installation



Steps:


a) Go to www.python.org web site and download Python (2|3) installer:

ree

b) Double-click on Python installer in Downloads folder:

ree

c) Click through installer prompts:

ree

ree

d) Launch Terminal app:

ree

e) Type pip3 install pygame in Terminal:

ree

f) Download starting Python project:




g) Rename "0 - orig_turtle.txt" to "0 - orig_turtle.py":

ree

h) Launch "0 - orig_turtle.py":

ree

Comments


bottom of page