Extracted text: 5. Splitting an Array Use Python Suppose the elements of an array A containing positive integers, denote the weights in kilograms. And we have a beam balance. We want to put the weights on both pans of the balance in such a way that for some index 0 < i="">< a.length="" -="" 1,="" all="" values="" starting="" from="" a[0],="" a[1],="" upto="" a[="" i="" -="" 1],="" should="" be="" on="" the="" left="" pan.="" and="" all="" values="" starting="" from="" a[i]="" upto="" a[="" a.length="" -="" 1]="" should="" be="" on="" the="" right="" pan="" and="" the="" left="" and="" right="" pan="" should="" be="" balanced.="" if="" such="" an="" i="" exists,="" return="" true.="" else,="" return="" false.="" input:="" [1,="" 1,="" 1,="" 2,="" 1]="" output="" :="" true="" explanation:="" (summation="" of="" [1,="" 1,="" 1]="summation" of="" [2,1])="" input:="" [2,="" 1,="" 1,="" 2,="" 1]="" output:="" false="" input:="" [10,="" 3,="" 10,="" 2,="" 1]="" output:="" true="" explanation:="" (summation="" of="" [10,="" 3]="summation" of="" [10,2,1]))="">