Skip to content
Snippets Groups Projects
Commit 88ce0222 authored by Tom Reclik's avatar Tom Reclik
Browse files

Changed function description to docstring. Added argument type and return type.

parent c59bb214
No related branches found
No related tags found
1 merge request!1Corrections - Tom
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
def compute_Fibonacci(n_numbers: int) -> list:
"""Small function to compute Fibonacci numbers
##
## Small function to compute Fibonacci numbers
##
def compute_Fibonacci(n_numbers):
Args:
n_numbers (int): Amount of Fibonacci numbers to be returned
Returns:
list: List of n_numbers Fibonacci numbers
"""
return_list = [0, 1]
for i in range(2, n_numbers, 1):
Fib = return_list[i - 1] + return_list[i - 2]
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment