Equal Sides Of An Array python code example
Example: Equal Sides Of An Array python
def find_even_index(nums):
for i in range(len(arr)):
if sum(arr[:i]) == sum(arr[i+1:]):
return i
return -1
def find_even_index(nums):
for i in range(len(arr)):
if sum(arr[:i]) == sum(arr[i+1:]):
return i
return -1