Fibonacci sequence

What is fibonacci sequence?

Fibonacci Sequence: is the series of numbers where the next number is found by adding up the 2 numbers before it.

TASK

1. Write a function, fibonacci(n) that takes in a number/int argument (n) and returns the first nth terms of the sequence.

Input

fibonacci(12)

Output

Expected output:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89

in this case n = 2:

RAW CONTENT URL