[Tutor] Python Challenge - Riddle 2
Liam Clarke
cyresse at gmail.com
Tue May 10 03:34:38 CEST 2005
Hmmm... the forums don't overly explain level 3.
Am I looking for something like this -
XXXjXXX? or something like XjXX or XXjX? I've also looked for -
ooXXXoo
XXXjXXX
ooXXXoo
and
oooXooo
oooXooo
oooXooo
XXXjXXX
oooXooo
oooXooo
oooXooo
Argh. My head is going to explode.
On 5/10/05, Roel Schroeven <rschroev_nospam_ml at fastmail.fm> wrote:
>
> John Carmona wrote:
>
> > OK I am stuck on this one. I see what I need to do (correct me if I am
> > wrong). But I need to write a script that will replace each letter by
> > another one (In this case a --> c etc.). I look at String, List and
> > Dictionary. I thought I could use the text.replace option but I am not
> sure.
> > Anybody to put me in the right track.
>
> There are different ways to do this; IIRC I did it using ord, chr and a
> list comprehension.
>
> Note that there is a forum for hints:
> http://www.pythonchallenge.com/forums/
>
> --
> If I have been able to see further, it was only because I stood
> on the shoulders of giants. -- Isaac Newton
>
> Roel Schroeven
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
'There is only one basic human right, and that is to do as you damn well
please.
And with it comes the only basic human duty, to take the consequences.'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050510/11295d3a/attachment.htm
More information about the Tutor
mailing list