def f(x):
if x <= 1:
return x
return f(x - 1) + f(x - 2)
g = f
def f(x):
return x
print(f(23))
print(g(23))
Item 8: Lexical Scope
Posted by Logan Chien
def f(x):
if x <= 1:
return x
return f(x - 1) + f(x - 2)
g = f
def f(x):
return x
print(f(23))
print(g(23))