Nothing is returned when I try iterating a function in Python. Code is like this
def count(num):
if (num > 10):
return(num)
if(num<=10):
new = num + 1
count(new)
nummer = count(8)
If I do count(22), it returns 22. But when I do count(8), it doesnt return anything. I would like this function to return '11' but it return nothing. Probably something wrong in my thinking but I really can't figure it out. I hope someone can help me.
Thx, Peter