Create a function in Python that takes an ID and returns a list of all the numbers in its range.
ID = 5
def get_numbers(id):
    nums = []
    for i in range(id + 1):
        nums.append(i)
    return nums

numbers = get_numbers(5)
print(numbers)