Question from the Python test

What is the output of the following code? ``` def f(x): if x == 0: return 1 else: return f(x - 1) + f(x - 2) print(f(3)) ```

Hard

Can we modify variables present in globals() inside a function that returns None? (One correct answer)

Author: Antoine BrennerStatus: PublishedQuestion passed 1983 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!