if second is true than countOfVal2 increase
if ( second ) : NEW_LINE INDENT val2 = i NEW_LINE countOfVal2 += 1 NEW_LINE second = False NEW_LINE continue NEW_LINE DEDENT if ( i == val2 ) : NEW_LINE INDENT countOfVal2 += 1 NEW_LINE continue NEW_LINE DEDENT if ( countOfVal1 > 1 and countOfVal2 > 1 ) : NEW_LINE return False NEW_LINE else : NEW_LINE return True NEW_LINE