The number of iterations can be passed as a parameter:
f = lambda x, lim: f((2*x)%99, lim-1) if lim > 1 else x
Using:
print(f(1, lim=10))