Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created March 29, 2021 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinThoma/02f649fe1645ede655a03a4fa8ea28bd to your computer and use it in GitHub Desktop.
Save MartinThoma/02f649fe1645ede655a03a4fa8ea28bd to your computer and use it in GitHub Desktop.
from typing import List, Any, Sequence
def fib_list(n=0):
# type: (int) -> Sequence[str]
fib_numbers: List[int] = [0, 1]
for _ in range(n):
fib_numbers.append(fib_numbers[-1] + fib_numbers[-2])
return "adf"
print(f"fib_list(10) = {fib_list(10)}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment