I want to simplify this statement in python.
if string=='M' or string=='m' or string=='Male': print "OK"
Try this:
if string in ["M", "m", "Male"]: print "OK"