I need to turn this code to one line code, without using yield, but it could involve the use of lambda.
f is a function an x0 is the first given number to enter the function
def give_value(f,x0):
yield x0
fx = x0
while True:
yield f(fx)
fx = f(fx)
any ideas?