text_html_output_1.png text_plain_output_1.png
def fibonacci(terms: int=1):
    out: list[int] = []
    for i in range(terms):
        if i == 0:
            out.append(0)
        elif i == 1:
            out.append(1)
        else:
            out.append(out[-2] + out[-1])
    return out
for i in range(15):
    print(fibonacci(i))