You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new challenge for generating the Fibonacci sequence up to a given number of terms.
The challenge should include:
A Python module (fibonacci.py) with a function generate_fibonacci(n) that returns a list of the first n terms of the Fibonacci sequence.
A test module (test_fibonacci.py) with unit tests to verify the functionality, covering edge cases like n=0, n=1, and invalid inputs.
The implementation should include proper docstrings, examples, and assertions for input validation.
The text was updated successfully, but these errors were encountered:
Create a new challenge for generating the Fibonacci sequence up to a given number of terms.
The challenge should include:
A Python module (
fibonacci.py
) with a function generate_fibonacci(n) that returns a list of the first n terms of the Fibonacci sequence.A test module (
test_fibonacci.py
) with unit tests to verify the functionality, covering edge cases like n=0, n=1, and invalid inputs.The implementation should include proper docstrings, examples, and assertions for input validation.
The text was updated successfully, but these errors were encountered: