File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 77def calculate_fibonacci_sequence (n ):
88 """Run an example analysis that calculates the first `n` values of the Fibonacci sequence.
99
10- :param int n: the number of values in the Fibonacci sequence to calculate the value of (must be more than 0)
11- :return (dict, str ): the result event and a random question UUID
10+ :param int n: the number of values in the Fibonacci sequence to calculate (must be >= 0)
11+ :return list(int ): the sequence
1212 """
1313 error_message = f"`n` must be an integer >= 0. Received { n !r} ."
1414
@@ -28,7 +28,7 @@ def calculate_fibonacci_sequence(n):
2828def _calculate_fibonacci_value (n ):
2929 """Calculate the nth value of the Fibonacci sequence.
3030
31- :param int n: the position in the sequence to calculate the value of (must be more than 0)
31+ :param int n: the position in the sequence to calculate the value of (must be >= 0)
3232 :return int: the value of the sequence at the nth position
3333 """
3434 if n == 0 :
You can’t perform that action at this time.
0 commit comments