string1 = "hi" string2 = "HI" if string1.lower() == string2.lower(): print "Equals!" else: print "Different!"