[Tutor] (no subject)

je.rees e-mail je.rees at virgin.net
Sun Aug 14 17:42:21 CEST 2011


I would like this script to only have a choice of one these. I'm not sure
how to do it. My example would be when someone types Good next to print how
I want it to reply Thats nice. Anyone know how and if I am making more
mistakes point them out please.


How=("How are you today: ")
print How
Good=('Thats nice')
good=raw_input(Good)
Good=raw_input(Good)
Ok=('Good good')
Ok=raw_input(Ok)
ok=raw_input(Ok)
Bad=('Oh dear')
Bad=raw_input(Bad)
bad=raw_input(Bad)

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110814/b079871b/attachment.html>


More information about the Tutor mailing list