def  oddNumbers(l, r):
  """
  List odd numbers within a closed interval.
  :param l: left interval endpoint (inclusive)
  :param r: right interval endpoint (inclusive)
  :return: odd numbers within [l, r].
  """
  l = l if l % 2 == 1 else l + 1
  r = r if r % 2 == 0 else r + 1
  return list(range(l, r, 2))