Bristol RaspberryPi Python Tutorial

This project is designed to allow people to pick up the included resources and teach a basic 1 hour lesson on some of the core concepts of programming within Python.

This is very much a beginner session however it is designed to be accessible. We are targetting this at teachers who want to learn Python in order to teach it under the new UK curriculum or at students who want a quick HOWTO on the basics of programming or python.

This session is regularly held in Bristol at the DigiMakers events held at @Bristol by the Bristol University Computer Science department. Search EventBrite and the Bristol University websites for DigiMakers for details of our next session.

Tutorials initially written by Thomas Mortensson and Ben Collins with support from Graham Laming. Thanks go to Robert Briggs for initial LaTeX support.

Session has been tested 7 times to date as of 23/11/2013.

Pre-requirements

A Raspberry Pi flashed with the default Raspbian image.

OR

Any machine capable of running Python (This guide is targetted at Python 2.7.x - much is still applicable to Python 3.x) e.g.

  • Mac (Python preinstalled)
  • Windows (Download python from http://www.python.org/download/)
  • Linux (Search for "installing pyton distro" where distro is your linux distro - many will ship with Python by default)

Usage

This session is centred around a handout document called TeachingGuide.pdf. This guide is written in LaTeX and can be edited via a file called TeachingGuide.tex.

The session is supplied with a basic exercise sheet titled ExerciseSheet.pdf. This is written in Apple Pages however we have also attached a Word Document compatible version suitable for editing by Teachers. We reccomend you come up with your own Exercise sheets as this sheet is very basic and limited in it's scope. It can be used successfully for a first session.

Working Python Source code to the workshop is included in a folder called python_workshop_code_samples. You may want to download and test this code before running a session. This code also includes answers to an additional Exercise 3 which is not included in the Exercise Document.

The Exercise document is split in 2 halves. One has questions and the second has answers, this has been done to make it easier for teachers to produce handouts. The main TeachingGuide has been limited in this iteration to 4 pages to allow for easier duplex printing. The colours chosen should work well printed in Colour or in Black and White. Similarly the Exercise sheet is a 1 page handout for students and a duplexable 2 page printout for teachers to minimise printing costs.