結果 : how to traverse a string in python