Programming Examples - Python
These are example Python programs that I've written as demonstrations of particular programming techniques or types of solution for both KS3 Computing and GCSE Computer Science. They are organised and categorised by technique/concept. There are further examples in the Python course and Microtips playlist on the Computing and ICT in a Nutshell YouTube channel. The idea is that students can see how the various methods can be used as part of a larger program after learning the basics of programming.
Most programs open in Basthon, which is a French IDE that doesn't require you to register. Click the Exécuter button to run them - and make sure that you don't translate the page! Where a program doesn't run in Basthon (e.g. because it uses the turtle) then the link opens the code, which you can copy and paste into your own IDE.
Choose the required techniques and click Search - select nothing to see the full list of examples.