| Store | Cart

Python for a 10-14 years old?

From: MyHaz <supp...@gmail.com>
24 Mar 2005 00:49:17 -0800
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.

Recent Messages in this Thread
tno...@yahoo.com Mar 24, 2005 05:03 am
Lucas Raab Mar 24, 2005 05:10 am
El Pitonero Mar 24, 2005 03:21 pm
Bengt Richter Mar 25, 2005 12:26 am
Ville Vainio Mar 25, 2005 03:14 am
Paul Rubin Mar 24, 2005 05:10 am
Stephen Thorne Mar 24, 2005 05:25 am
Marcin Mika Mar 24, 2005 05:42 am
MyHaz Mar 24, 2005 08:49 am
moma Mar 24, 2005 01:31 pm
Michele Simionato Mar 24, 2005 10:35 am
MyHaz Mar 24, 2005 11:56 am
Christos TZOTZIOY Georgiou Mar 24, 2005 12:37 pm
Ville Vainio Mar 24, 2005 12:50 pm
Christos TZOTZIOY Georgiou Mar 24, 2005 01:01 pm
Scott David Daniels Mar 24, 2005 05:55 pm
Fred Pacquier Mar 24, 2005 01:33 pm
nsm....@gmail.com Mar 24, 2005 02:05 pm
Christos TZOTZIOY Georgiou Mar 28, 2005 01:16 pm
Fred Pacquier Mar 28, 2005 04:33 pm
Aahz Mar 27, 2005 01:18 pm
Reinout van Schouwen Mar 24, 2005 01:18 pm
Jim Mar 24, 2005 01:30 pm
Simon Brunning Mar 24, 2005 02:38 pm
Michael Spencer Mar 24, 2005 06:14 pm
Jot Mar 24, 2005 07:15 pm
R.Meijer Mar 24, 2005 09:33 pm
Greg Ewing Mar 30, 2005 03:29 am
Leif B. Kristensen Mar 25, 2005 12:43 am
Paul Rubin Mar 25, 2005 04:48 am
Lucas Raab Mar 25, 2005 01:54 pm
Greg Ewing Mar 30, 2005 03:40 am
Jules Dubois Mar 25, 2005 07:50 am
Arthur Mar 27, 2005 06:22 pm
Paul Rubin Mar 25, 2005 08:04 am
Aahz Mar 27, 2005 01:21 pm
cfbolz Mar 25, 2005 09:34 pm
Joal Heagney Mar 26, 2005 04:49 am
Joal Heagney Mar 27, 2005 04:12 am
Lee Harr Mar 27, 2005 09:38 pm
Joal Heagney Mar 29, 2005 03:50 am
Duncan Booth Mar 29, 2005 08:15 am
Joal Heagney Mar 30, 2005 03:30 am
Joal Heagney Mar 30, 2005 03:33 am
Joal Heagney Mar 30, 2005 03:41 am
Lee Harr Mar 28, 2005 07:19 pm
Messages in this thread