[Tutor] boolean raw_input

Bernard Lebel python at bernardlebel.com
Thu Aug 19 00:07:45 CEST 2004


Recently I saw on this list a bit of code that used a boolean expression
inside a raw_input call, and of course realized after I deleted the email
that I actually need that. If I remember correctly, it was something like:

raw_input( 'text', [y/n] )

However trying this didn't work, and I looked through the docs without
success. Can anyone tell me the how-to?


More information about the Tutor mailing list