From c65e39e53623628ea91328fe95097c57109e8c7b Mon Sep 17 00:00:00 2001 From: Miles Maltbia Date: Mon, 23 Jan 2023 20:21:52 -0500 Subject: [PATCH] Zeroeth Fib Issue Resolved --- fib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fib.py b/fib.py index 421cfab..f35cfdf 100644 --- a/fib.py +++ b/fib.py @@ -8,6 +8,8 @@ def fibonacci(position): if(position == 1 or position == 2): return 1 + if(position == 0): + return 0 return fibonacci(position - 1) + fibonacci(position - 2)