I am trying to write a recursive function that prints from 0 to n, but I have no idea how to do it. I accidentally made one that prints from
0
n
You can do this
def fun(num,n): if num