We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eab767 commit ff2fa3bCopy full SHA for ff2fa3b
1 file changed
app.py
@@ -17,5 +17,15 @@ def fibonacci(n):
17
result = fibonacci(35)
18
return f"Fibonacci(35) = {result}"
19
20
+@app.route('/lag/<int:number>')
21
+def lag_with_number(number):
22
+ def fibonacci(n):
23
+ if n <= 1:
24
+ return n
25
+ return fibonacci(n - 1) + fibonacci(n - 2)
26
+
27
+ result = fibonacci(number)
28
+ return f"Fibonacci({number}) = {result}"
29
30
if __name__ == '__main__':
31
app.run(host='0.0.0.0', port=3000, debug=True)
0 commit comments