Create a Python module that takes a given number and produces an output array with the numbers 0 to the given number, excluding the given number.
Number: 10
def exclude_number(n):
  return [i for i in range(0,n) if i < n]