Small program ideas
Neil Cerutti
neilc at norwich.edu
Fri Mar 29 09:43:24 EDT 2013
On 2013-03-28, PMT <d12123176 at 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
More information about the Python-list
mailing list