(l, base)
return sum([d * (base**i) for i, d in enumerate(l)])
Helper function: convert a list of digits in the given base to a number.
Helper function: convert a list of digits in the given base to a number.
Helper function : convert a list of digits in the given base to a number .
def lower_endian_to_number(l, base):
  """Helper function: convert a list of digits in the given base to a number."""
  return sum([d * (base**i) for i, d in enumerate(l)])
def lower_endian_to_number ( l , base ) : return sum ( [ d * ( base ** i ) for i , d in enumerate ( l ) ] )