Function to check if N is a super - d number
def isSuperdNum ( n ) : NEW_LINE INDENT for d in range ( 2 , 10 ) : NEW_LINE INDENT substring = str ( d ) * d ; NEW_LINE if substring in str ( d * pow ( n , d ) ) : NEW_LINE INDENT return True NEW_LINE DEDENT DEDENT return False NEW_LINE DEDENT