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 dict[c], Also since dict and list are built-in functions it is not a good idea to reassign these names. -- Bob Gailer 510-978-4454 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor