結果 : check if a stack is empty python