• + 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:
            a = 0
            b = 1
            list1 = [a, b]
            for i in range(2,n):
                c = a+b
                a = b
                b = c
                list1.append(c)
                
            return list1