Comments on writing Python on a MacBook
May 6, 2008# A hash denotes a single line comment in Python. # The hash key is very hard to find on a MacBook. # Because there isn't one. # Try Alt + 3
Spam * Spam = Spam spam spam spam
May 6, 2008So, I’ve been under some pressure from certain people to start learning Python. Sam is learning his multiplication tables at school so what better way to start than by killing two parrots with two sharp flat ones and a bag of gravel (after HelloWorld.py that is)…
# TimesTable
# For Sam - Prompts for a name and a number.
# Prints out x times table
# A bit Noddy but you gotta start somewhere...
name = raw_input( "Hello, what's your name : " )
print "Hi", name,
number = raw_input( ", type a number : " )
print " "
print "The times table for ", number, "is : "
print " "
for i in range(1, 13):
print i, "x", number, "=", i * int(number)
This blogging lark is exhausting
April 11, 2008So I’m off to the Lake District on holiday - might blog whilst I’m away, might just eat Kendal Mint Cake and wonder lonely as a cloud that floats on high o’er vales and hills.
See ya next week.
Is this thing on?
April 10, 2008I thought I might make a return to blogging after a rather long absence - I only went out for a pint of mik.
So, what *have* I been doing instead of blogging? Well, apart from being a great husband and terrific father, I’ve mainly been using what small amount of spare intellect I have left (after remembering my name and how to chew gum) to retrain myself to write bugs in Java instead of RPG (and other legacy type stuff). I think I’ve done rather well considering.
Expect more techie type posts as I desperately try to be taken seriously and fewer reference to Liz Hurley’s pedulous orbs.
So here I am. Happy now?
And, in keeping with my previous blogging style - bugger this, I’m off to the pub!
Twang!
December 13, 2007You gotta love GMail. Whilst sending a mail asking for advice on String manipulation in Java, I noticed that the sponsored ads gave me a link to a “Professional female string quintet” for hire and another to a site offering “Micro String Bikinis”.
Of course, I put two and two together…
Are you *still* there
September 28, 2007Thought I might knock out a quick post, just to see if it still works.
On little boys, herding cats and too many sweets
February 13, 2007I spent a few happy hours on Saturday taking Sam and six of his mates to the cinema for Sam’s birthday treat. I didn’t manage to lose any of them, in spite of their very best efforts. Every few seconds they seemed to perform a co-ordinated “bomb burst” maneouvre - the phrase “herding cats” springs readily to mind.
I”m pleased to report, however, that I managed to make two of them sick by taking an overly relaxed approach to the number of sweets they were allowed to eat. Bertie threw up on the station platform after turning several different shades of green and white. Harvey saved it until he got home, which is technically out of my control: his mother reported that it was mainly chocolate based.
I suggest that you don’t bother to see Arthur and the Invisibles – load of old tripe!
A daughter - Charlotte Williams Rose
January 17, 2007
Cathy and I are the proud parents of a beautiful baby girl who was born at 01:16 this morning in The Royal Surrey Hospital, Guildford. She weighs in at a might 9lbs (or 4.090 kilos if you’re that way inclined). We haven’t chosen a name yet but you’ll be amongst the first to know when we do. Here’s a photo to be going on with (there are a few more in my Flickr photostream over here on the right).
Last post
December 29, 2006I haven’t posted for ages because I’ve been a bit busy learning some Java - so…
public class HappyNewYear {
public static void main(String[ ] args) {
System.out.println("Happy New Year!");
}
}
Impressed?
Posted by neveratoss


