def fibUnderN(n):
    """ This function returns a list of fibonacci numbers under n
    --param
    n : integer
    --return
    list : all fibs under n
    """
    fibs = [0,1]
    ctr = 2

    while (fibs[-1] + fibs[-2]) < n:
        fibs.append(fibs[ctr-1] + fibs[ctr-2])
        ctr += 1

    return fibs.copy()