From f3f3251828e61af45888fb2b5316eaa534aa9b67 Mon Sep 17 00:00:00 2001 From: gonzalezf Date: Mon, 24 Oct 2022 23:20:01 -0400 Subject: people.json fixed --- entries/gonzalezf/fib.py | 14 ++++++++++++++ people.json | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 entries/gonzalezf/fib.py 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 @@ -234,6 +234,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", -- cgit v1.2.3-70-g09d2