For various reasons I’ve been experimenting with services that allow students to develop *and run* code in the browser.
The River Thames has spilled into the flood plain (which is what flood plains are for) and the local footpaths now look like this:
Being generally inquisitive, and also wondering when I’ll be next able to walk into Wallingford, it would be useful to know whether the river is rising or falling. Is there an easier way that walking down to the river every couple of hours with a depth gauge?
There’s loads of resources on the net for learning to code with Python. These three are my recommendations.
- Codecademy Python track: sign up (free) with Codecademy and learn Python piece-by-piece.
- Learn Python The Hard Way: using the online HTML book (or spend $$ for extras).
- Project Euler: set yourself some of the challenges from Project Euler.
[Update: 06 Jan 2013]
Here’s #4: http://www.pythonforbeginners.com/
@danielstucke asked for little programming tasks around conditionals and loops.
I suggested the Fizz Buzz challenge.
is a group word game frequently encountered as a drinking game. Players take turns to count incrementally, replacing any number divisible by three with the word “fizz”, and any number divisible by five with the word “buzz”.
Before reading on, try it. Go on, write some code that plays Fizz Buzz.