how to find if a deque is empty python code example Example: python deque empty if d: # not empty else: # empty