[Tutor] Paper Rock Scissors game - User's choice not returned properly

Peter Otten __peter__ at web.de
Mon Oct 31 21:22:21 CET 2011


Alan Gauld wrote:

> if choice.lower() not in ('prs'): # NB use a single string

That's not a good idea. If a user accidentally enters PR (for example) your 
version will mistake that for a valid choice. 




More information about the Tutor mailing list