• + 0 comments
    cube = lambda x:x**3 # complete the lambda function 
    
    def fibonacci(n):
        # return a list of fibonacci numbers
        if n == 0:
            return []
        elif n == 1:
            return [0]
        else:
            fib = [0, 1]
            for i in range(2, n):
                fib.append(fib[i - 1] + fib[i - 2])
            return fib