結果 : wap to traverse string using for loop in python