how to tell if deque is empty pyhton code example Example: python deque empty if d: # not empty else: # empty