Exercises on Functions
Test yourself by trying to solve the challenging questions provided in this lesson!
We'll cover the following...
We'll cover the following...
Question 1
Write a function that computes the Fibonacci number.
- The function should be called
fiband should take as input a single integer value in a variablen. It should return an integer value representing the Fibonacci number. - The function should use a loop instead of recursion.