Java List Add Array Python Methods Vs Functions In Python