method to return count of numbers with same starting and ending digit from 1 upto x
def getCountWithSameStartAndEndFrom1 ( x ) : NEW_LINE INDENT if ( x < 10 ) : NEW_LINE INDENT return x NEW_LINE DEDENT DEDENT