• + 1 comment

    here's my solution for this question:

    cube = lambda x: x**3
    
    def fibonacci(n):
        list1=[]
        for i in range(n):
            list1.append(i) if i<2 else list1.append(list1[i-1]+list1[i-2])
        return list1    
    
    if __name__ == '__main__':
        n = int(input())
        print(list(map(cube, fibonacci(n))))