While Loop Through String Array Python Definition