def fibonacci(n): \n  result = [0, 1] \n  for i in range(2, n): \n    result.append(result[i-1] + result[i-2]) \n  return result[:n]
Create a function which takes a positive integer and returns a Fibonacci sequence up to that number?