Równe strony Pythona tablicy

def find_even_index(nums):
    for i in range(len(arr)):
        if sum(arr[:i]) == sum(arr[i+1:]):
            return i
    return -1
Hash'J Programming