結果 : how to write stack program in python