Find Maximum length of number
for i in range ( 9 ) : NEW_LINE INDENT frac [ i ] = sum // arr [ i ] NEW_LINE if ( frac [ i ] > maxi ) : NEW_LINE INDENT pos = i NEW_LINE maxi = frac [ i ] NEW_LINE DEDENT DEDENT an = str ( ( pos + 1 ) ) * maxi NEW_LINE sum -= maxi * arr [ pos ] NEW_LINE ans = [ i for i in an ] NEW_LINE