Python for a 10-14 years old?

MyHaz support.services.complaints at gmail.com
Thu Mar 24 09:49:17 CET 2005


Well i don't know of any tutorials but i thought of a cool little
"assignment" that might interest someone of that age assuming english
is her first language. Its a neat little trick with english and the way
that we proccess letter combinations (or should i say permuations). But
a program that turned proper english into this, might be neat.

"""
Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in
waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht
the frist and lsat ltteer be at the rghit pclae. The rset can be a
toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae
the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a
wlohe.
"""


the algo whold be something like

openfile
for word in file
   tmp=word[0]
   tmp+=permut(tmp[1:-2])
   tmp+=word[-1]
   print word


She could enjoy sending letters like this, neat secrete codes for a
nine year old ;)


Linky http://www.mrc-cbu.cam.ac.uk/personal/matt.davis/Cmabrigde/

G'Luck
- Haz

P.S. I just had my friend read it and his native tongue is chinese, so
might work for other languages too.




More information about the Python-list mailing list