Python Pit

A series of practical programming resources that quickly extend Python programming skills. Most of the exercises are designed to run on the Raspberry Pi computer.

Resources

The Python Pit

This introductory article shows working examples of basic Python programs. It includes: • Printing to the screen • Comments • Simple arithmetic • Using variables • Strings and string arrays • For and While loops • Random numbers from the Random library • Creating a simple game with Pygame
Publication date:
2010 to date

1 file

0

0
Not yet rated

Pygame

This article includes all the code needed to make a simple game which captures keyboard events and uses multimedia. It uses the Pygame library, and includes graphics control and basic collision detection. The activity is suitable as an introduction to programming with Python, or as a fully working program that...
Publication date:
2010 to date

1 file

0

0
Not yet rated

Surfaces in Pygame

This activity follows on from a previous graphics surface project. Previously a single graphics surface was created - this Python program uses multiple surfaces to build more complex graphics and to create effective animations. Students are encouraged to experiment with the behaviour of the program, and to extend...
Publication date:
2010 to date

1 file

0

0
Not yet rated

Event Driven Programming

This resource introduces programming techniques including Object-Oriented Programming (OOP) and Event-Driven Programming (EDP). The article consists of the full code for a working computer game. it could be used as a basis for adapting code for other purposes, or as a tool to aid understanding of code fragments...
Publication date:
2010 to date

2 files

0

0
Not yet rated

Pages

Published by

Actions

Share this resource

Lists that tag this content

You might also like

Resource collection
Resource collection
Resource collection
Resource collection

Comments

Add comment

Log in or register to post comments