Question: 1 . Fibonacci sequence: 1 , 1 , 2 , 3 , 5 , 8 , 1 3 , . . . , Write a

1. Fibonacci sequence: 1,1,2,3,5,8,13,...,
Write a program using a recursive function that requests the index n as input and then displays the number of the Fibonacci sequence at that index.
Sample Output:
Enter an index: 5
The Fibonacci number at index 5 is 8
2. Write your own function to remove an element from a list (name it remove_element). Your function should accept a number and a list and return the list with that element removed. So for example:
remove_element(2,[4,1,2,6,9])
should return [4,1,6,9]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!