Check for reverse number reach digit must be odd
while ( sum and ( ( rem % 2 ) != 0 ) ) : NEW_LINE INDENT rem = sum % 10 NEW_LINE sum //= 10 NEW_LINE DEDENT if ( sum == 0 ) : NEW_LINE INDENT print ( " Reversible ▁ Number " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " Non - Reversible ▁ Number " ) NEW_LINE DEDENT