From e4357153a8437444a1040f27120a492db603e912 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 14 Aug 2021 17:38:43 +0800 Subject: [PATCH] save project --- 2.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 2.py diff --git a/2.py b/2.py new file mode 100644 index 0000000..481e67c --- /dev/null +++ b/2.py @@ -0,0 +1,8 @@ +def func(n): + if n<=2: + return 1 + elif n>2: + value = func(n-1) + func(n-2) + return value +result = func(20) +print(result) -- libgit2 0.25.0