def fibonacci(n: int) -> list: if n == 0: return [] r = [0, 1] for i in range(2, n): r.append(r[-1] + r[-2]) return r[:n] print(fibonacci(6))