/Fibonacci

Codewars Challenge - Complete Fibonacci Series // Made in Python and TypeScript.

Primary LanguagePython

Fibonacci

Codewars Challenge - Complete Fibonacci Series // Made in Python and TypeScript.

Link: https://www.codewars.com/kata/5239f06d20eeab9deb00049b

The function 'fibonacci' should return an array of fibonacci numbers.
The function takes a number as an argument to decide how many no. of elements to produce.
If the argument is less than or equal to 0 then return empty array.

Example:

fibonacci(4) # should return [0,1,1,2]

fibonacci(-1) # should return []