That Blue Square Thing

Computer Science GCSE

Python Programming

Python is the key programming you'll need to learn to be able to deal with the practical computer programming aspects at GCSE.

You can get Python for freewiki link and it will install onto most systems. There are also plenty of places to learn how to deal with it online.

Most importantly, you need to make sure you're using Python 3. Any version of 3 will do, the most up to date is best. Just make sure it's 3!.

It's important to realise that if you look at online help sites, plenty of the stuff on them is written assuming Python 2, especially if it's a bit old. The best giveaway is if you see print statements written without brackets:

print "This is Python 2"

print("This is Python 3")

The technical reason is that the print statement is a function as of Python 3, and functions use brackets.

Programming basics

Most of the detailed work throughs and so on are on individual pages now. You'll find those off to the left in the navigation. Think about them as getting harder as you move down the navigation bar!

Some basics are:

PDF iconData types - basic Python data types

PDF iconVariables - summary of how to use variables

PDF iconOperators in Python - the key operators and how to use them

And some basics about strings:

PDF iconStrings intro - what a String is and how to use it

PDF iconString methods - summary of string methods

Guess the Number task:

The resources needed for the Guess the number programming task are below. If there's a problem with them please e-mail me. You should probably use my school e-mail address.

Note: you will probably have to right click and chose to download the python code.

PDF iconTask sheet - a copy of the task sheet

Python iconPython code - right click, download and open in IDLE

Text file iconProgram code - as a text file in case your system stops you downloading Python code. In this case simply copy and paste the code into IDLE