Javascript Push Element Into Array In Python