def fib(n):
    """Return Fibonacci sequence with length "n".

    Args:
        n: The length of the sequence to return.

    Returns:
        A list containing the Fibonacci sequence.
    """
    result = []
    a, b = 0, 1
    for _ in range(n):
        result.append(b)
        a, b = b, a + b
    return result