結果 : implement stack operations in python