C Sharp Loop Through Array Python Methods Vs Functions