If both strings are of different length . Removing this condition will make the program fail for strings like " aaca " and " aca "
if ( len ( str1 ) != len ( str2 ) ) : NEW_LINE INDENT return False ; NEW_LINE DEDENT