Consider the following codes that compute the Fibonacci sequence using two different methods: fib_recursive.py and fib_loop.py.
- Put these two functions in a folder named
fib
such that they can be imported as a Python package to your Python environment. - Rewrite these scripts such that they are imported as Python packages without being executed, while the functions are called if the scripts are executed as standalone Python code.