Check if divisors are equal
if ( n / i == i ) : NEW_LINE INDENT divisors . append ( i ) NEW_LINE DEDENT else : NEW_LINE INDENT divisors . append ( i ) NEW_LINE divisors . append ( int ( n / i ) ) NEW_LINE DEDENT return sorted ( divisors ) NEW_LINE