bunch more testcases

This commit is contained in:
Nathan Braswell
2022-04-12 00:14:09 -04:00
parent 55afa8977e
commit c6071dbbe1
17 changed files with 508 additions and 0 deletions

9
fib.py Normal file
View File

@@ -0,0 +1,9 @@
import sys
def fib(n):
if n == 0:
return 1
elif n == 1:
return 1
else:
return fib(n-1) + fib(n-2)
print(fib(int(sys.argv[1])))