[Tutor] How to handle conjunction operators

surya k suryak at live.com
Sun Nov 27 19:52:00 CET 2011

Could you please tell me why this isn't working and how can I make it possible...
Consider this code..name = raw_input("Enter your first name: ")
if name[0] == ("m" or "f" or "b") :
   rhyme = name[1:]What I want here is.. If the name starts with 'm' or 'f' or 'b', The first letter should be removed.But this isn't happening here. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111128/4bc74583/attachment.html>

More information about the Tutor mailing list