Create a function in Python that takes a number and prints the odd numbers in the range [0, n).
def printOddNumbers(n):
    "Prints the odd numbers in the range [0, n)."
    for i in range(n):
        if i % 2 != 0:
            print(i)

#Example
printOddNumbers(10)