How To Loop Through String In Python