While Loop Through String Array Python Methods Vs Functions