Re: [Tutor] Python Challenge 2

2007-12-21 Thread Tiger12506
>I did this and got this string :- > > "i hope you didnt translate it by hand. thats what computers are for. > doing it in by hand is inefficient and that's why this text is so long. > using string.maketrans() is recommended. now apply on the url" > Is that the answer because it does not solve th

Re: [Tutor] Python Challenge 2

2007-12-21 Thread Alan Gauld
"David Holland" <[EMAIL PROTECTED]> wrote > > "i hope you didnt translate it by hand. thats what computers are > for. > doing it in by hand is inefficient and that's why this text is so > long. > using string.maketrans() is recommended. now apply on the url" > > Is that the answer because it doe

Re: [Tutor] python challenge 2

2006-07-18 Thread Bob Gailer
devayani barve wrote: > this is what i did for level 2 of python challenge: Please don't publish challenge solutions. That defeats the purpose of the challenge. That said your program takes a very circuitous route to iterate thru a string. Why not just: dict = ... s = ... for c in s: print

Re: [Tutor] python challenge 2

2006-07-18 Thread Kent Johnson
devayani barve wrote: > this is what i did for level 2 of python challenge: Please don't post verbatim solutions to the challenges, let's leave some challenge in it for those who come after. Kent ___ Tutor maillist - Tutor@python.org http://mail.pyth

Re: [Tutor] python challenge 2

2006-07-17 Thread Luke Paireepinart
devayani barve wrote: > this is what i did for level 2 of python challenge: > > > dict={'a':'c','b':'d','c':'e','d':'f','e':'g','f':'h','g':'i','h':'j','i':'k','j':'l','k':'m','l':'n','m':'o','n':'p','o':'q','p':'r','q':'s','r':'t','s':'u','t':'v','u':'w','v':'x','w':'y','x':'z','y':'a','z':'b','