結果 : check if deque is not empty python