Environment Diagram times 2 def repeated(f,n,x): while n 0: x f(x) n-=1 return X repeated(lambda x:x*x,times,3) repeated(square,times,3)Environment Diagram times = 2 def repeated(f, n, x): while n > 0: x = f(x) n -= 1 return x def square(x): return x * x repeated(square, times, 3) times = 2 def repeated(f, n, x): while n > 0: x = f(x) n -= 1 return x repeated(lambda x: x*x, times, 3)