def recur(n):
print(n)
if n>1:
recur(n-1)
How can this be converted to just line. I can not find a way to use the logic as
recur = lambda x: print(x) if.......
I can not even use
func = lambda x: [print(i) for i in range(x,0,-1)]