APA style format (Instructions also included in the doc file attached) Fibonacci

APA style format (Instructions also included in the doc file attached) Fibonacci Sequence: Write a recursive function in Python to generate the Fibonacci sequence up to a given number. The Fibonacci sequence is a series of numbers in which each number is the sum of the two preceding ones. By convention, the Fibonacci sequence starts with 0 and 1. Your function should have the following specifications: Function Name: fibonacci Parameters: n (int): The maximum number up to which the Fibonacci sequence should be generated. Return Type: list: A list containing the Fibonacci sequence up to the given number. Constraints: The input number (n) will be a positive integer. You should implement the function using linear recursion, where each recursive call calculates the sum of the previous two numbers in the sequence. Sample Output: Input: 10 Output: [0, 1, 1, 2, 3, 5, 8] Input: 5 Output: [0, 1, 1, 2, 3] Input: 2 Output: [0, 1]

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount