Generation

generate functionTue, 22 Nov 2022

calculate the nth fibonacci number

def fib(n): if n <= 1: return n return fib(n-1) + fib(n-2) fib(3)

Questions about programming?Chat with your personal AI assistant