結果 : how to code a text editor in python