Search This Blog

Tuesday, June 04, 2013

Can learning Python help with the Eleven Plus?

Would working through exercises from the programming language `Python’ help some of our eleven plus children and their parents? Some eleven plus children may occasionally use the well-known words: “In a while!” “In a while can mean three minutes or three hours. There may even be some who would make the `while’ last three days! Learning elements of Python may help.

In Python there is a something called a `for loop’. It is possible to print the words, “I love work” five times with the command word `print’.

>>> print (“I love work”)
I love work
>>> print (“I love work”)
I love work
>>> print (“I love work”)
I love work
>>> print (“I love work”)
I love work
>>> print (“I love work”)
I love work

In Python you can use a `for loop’ to reduce the amount of typing and repetition.

>>>  for x in range (0,5)
                Print (“I love work”)

I love work
I love work
I love work
I love work
I love work

The command is to start printing the words `I love work’  at 1 and stop at 5.

Think now of the time that will save the average eleven plus family over a year!

You could start a `for loop’ from 1 to 100 for bed time, eleven plus work, tidying the bedroom, and feeding the dog.

Think now of your child’s favourite computer urging him or her to do a little extra work! What a coup!   





No comments: