print('Length of array:', len(new_arr))
print('Max of array: ', max(new_arr))
print('min of array: ', min(new_arr))
print('and it sums up to %d' % sum(new_arr))
Generate N positive integers within a range adding up to a total in python