結果 : how to traverse a string in python using while loop