Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Neil Cerutti Newsgroups: comp.lang.python Subject: Re: Small program ideas Date: 29 Mar 2013 13:43:24 GMT Organization: Norwich University Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net gQAz2KAOWfopdLlgKWFa6QlJQVpnPVe8T9sSKOYp5lVGiXqh2b Cancel-Lock: sha1:aOnBlMUYrsgEkkKm1j/YooCQ1R8= User-Agent: slrn/0.9.9p1/mm/ao (Win32) Xref: csiph.com comp.lang.python:42243 On 2013-03-28, PMT 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