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 <[EMAIL PROTECTED]> 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@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.'
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor