Create a Python generator that generates the odd numbers between 0 and given n.
n = 10
def oddNumbers(n):
    for i in range(0, n + 1):
        if i % 2 != 0:
            yield i

n = 10
for num in oddNumbers(n):
    print(num)