結果 : append to string python time complexity