Iteration for the last value of iteration in Python

How can I define a function in python in such a way that it takes the previous value of my iteration where I define the initial value.

For example, I have a function f(x), I want to give a start guess of x then my definition should give f(x) and then use f(x) to find f(f(x)).. and so on?

Thanks a lot!