If there are more than 1 digits left and number is more than base , then remove last digit by doing num / base , reduce the number of digits and recur
if ( dig > 1 and num >= base ) : NEW_LINE INDENT return checkUtil ( num / base , - - dig , base ) NEW_LINE DEDENT return False NEW_LINE