Angular Loop Through Array Python Methods Vs Functions In Python