def yourFunction(arg): #you can't just recurse over and over, #you have to have an ending condition if arg == 0: yourFunction(arg - 1) return arg