# Title: Fibonacci sequence
# Heading: Python Program to Print the Fibonacci Sequence
# Level: beginner
# Tags: fibonacci, fibonacci series, sequence, for loop
# About: Builds the first n terms of the Fibonacci sequence, where each term is the sum of the two before it, as a list.

def fibonacci(n):
    """The first n terms of the Fibonacci sequence, as a list."""
    terms = []
    a, b = 0, 1
    for _ in range(n):
        terms.append(a)
        a, b = b, a + b
    return terms


print("First 10 terms:", fibonacci(10))
print("First 1 term:", fibonacci(1))
