Cookie Monster

Guyon Morée gumuz at NO_looze_SPAM.net
Wed Jul 28 14:32:39 CEST 2004


hey, shall we start a sourceforge project for this?

;)


"Peter Hansen" <peter at engcorp.com> wrote in message
news:l7WdnV1p5e8wH5rcRVn-ig at powergate.ca...
> Patrick Zittle wrote:
>
> > Does anyone know the code for the cookie monster app?  It is a little
> > app that when you start it up it says "I want a cookie"  and if you
> > answer anything but "cookie" it asks you agian.  If you answer "cookie"
> > it goes away.  It was on the movie "Hackers" i belive.  I also saw it in
> > a learning python book but can't remember which one.  If someone could
> > please post the code for it on this mailing list.  Thanks a lot!!!
>
> You mean this?
>
> while raw_input('I want a cookie. ') != 'cookie':
>      pass
>
> -Peter





More information about the Python-list mailing list