aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus de Medeiros2022-10-25 04:01:14 +0000
committerGitHub2022-10-25 04:01:14 +0000
commit3929549460cd5b4a71e196400b0cbfda67b7acb0 (patch)
treef44ba5d76ea5d6b4b15c7ec0b2869736b8ee0b5f
parent23d0d936fc817961e0f8f19ca6033a51edb445fe (diff)
parent38781fac8ddeb81670de5aa18f55fa7a2edb1bb7 (diff)
Merge branch 'braxtonhall:main' into main
-rw-r--r--entries/gonzalezf/fib.py14
-rw-r--r--people.json11
2 files changed, 25 insertions, 0 deletions
diff --git a/entries/gonzalezf/fib.py b/entries/gonzalezf/fib.py
new file mode 100644
index 0000000..26d3a64
--- /dev/null
+++ b/entries/gonzalezf/fib.py
@@ -0,0 +1,14 @@
+
+def fibonacci(n):
+ if n == 1 or n == 0:
+ return 1
+ else:
+ return fibonacci(n-1) + fibonacci(n-2)
+
+
+def main():
+ n = int(input('Insert n: '))
+ print('Fibonacci (',n,') =', fibonacci(n))
+
+if __name__ == "__main__":
+ main() \ No newline at end of file
diff --git a/people.json b/people.json
index ecb28dd..a5d4d50 100644
--- a/people.json
+++ b/people.json
@@ -235,6 +235,17 @@
]
},
{
+ "github": "gonzalezf",
+ "name": "Felipe González-Pizarro",
+ "title": "MSc Computer Science Student, UBC",
+ "entries": [
+ {
+ "name": "fib",
+ "link": "./entries/gonzalezf/fib.py"
+ }
+ ]
+ },
+ {
"github": "fbanados",
"name": "Felipe Bañados Schwerter",
"title": "PhD Candidate, UBC",