Make sure there are no leading zeroes in the string .
s1 = removeLeadingZeores ( s1 ) NEW_LINE s2 = removeLeadingZeores ( s2 ) NEW_LINE if s1 == "0" or s2 == "0" : NEW_LINE INDENT return False NEW_LINE DEDENT if s1 == "1" and s2 == "1" : NEW_LINE INDENT return True NEW_LINE DEDENT if s1 == "1" and s2 == "1" : NEW_LINE INDENT return True NEW_LINE DEDENT