Explain The Javascript Array Handling In Python Program