peter at engcorp.com
Wed Jul 28 12:40:46 CEST 2004
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':
More information about the Python-list