Convert the following for loop into a recursive function in Python.
for i in range(5):
    print(i)
def printRange(start, end):
    if start == end:
        return
    print(start)
    printRange(start+1, end)

printRange(0, 5)