Difference Between Array And String In Python Function