On 2013-03-28, PMT <d12123...@mydit.ie> wrote: > Em s?bado, 16 de fevereiro de 2013 03h22min41s UTC, eli m escreveu: >> Any small program ideas? I would prefer to stick to command >> line ones. Thanks. > > What about this one? > > Do you know how to do the elevator simulation?
Cribbed from an early chapter of the excellent computer science manual, _Simply Scheme_: A command line program to convert a sentence into Pig-Latin. C:\> piglatin.py Look in the bag! Ooklay in the agbay! Start with a function that converts a single word to Pig-Latin, and work your way up to the final program in small steps. -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list