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