結果 : how to check if a deque is empty python