Javascript Push Element To Beginning Of Array In Python