Array And String Function In Python