Recently I got to know that in Python how various data structures can make your code more efficient. During my investigation, I came across how lists and deques operate, I want to know how a deque is executed, and also of its downsides with respect to lists.