結果 : check stack is empty python