from multiprocessing import Process, Array

def process_handler(i, array, result):
    print(f"Process #{i}. Adding {array[i][-1::-1]} to result")
    result[i] = len(array[i][-1::-1])

if __name__ == "__main__":
    result = Array('i', 3)
    input_array = ["Jesse", "Walter", "Soul"]
    procs = [Process(target=process_handler, args=(i, input_array, result)) for i in range(3)]
    for proc in procs:
        proc.start()
    for proc in procs:
        proc.join()
    print("Result", result[:])
cf78c5c137002bb21a64067ec6a8337621842ad0
<mask token>

<mask token>


def process_handler(i, array, result):
    print(f'Process #{i}. Adding {array[i][-1::-1]} to result')
    result[i] = len(array[i][-1::-1])


<mask token>

<mask token>


def process_handler(i, array, result):
    print(f'Process #{i}. Adding {array[i][-1::-1]} to result')
    result[i] = len(array[i][-1::-1])


if __name__ == '__main__':
    result = Array('i', 3)
    input_array = ['Jesse', 'Walter', 'Soul']
    procs = [Process(target=process_handler, args=(i, input_array, result)) for
        i in range(3)]
    for proc in procs:
        proc.start()
    for proc in procs:
        proc.join()
    print('Result', result[:])

from multiprocessing import Process, Array


def process_handler(i, array, result):
    print(f'Process #{i}. Adding {array[i][-1::-1]} to result')
    result[i] = len(array[i][-1::-1])


if __name__ == '__main__':
    result = Array('i', 3)
    input_array = ['Jesse', 'Walter', 'Soul']
    procs = [Process(target=process_handler, args=(i, input_array, result)) for
        i in range(3)]
    for proc in procs:
        proc.start()
    for proc in procs:
        proc.join()
    print('Result', result[:])

from multiprocessing import Process, Array

def process_handler(i, array, result):
    print(f"Process #{i}. Adding {array[i][-1::-1]} to result")
    result[i] = len(array[i][-1::-1])

if __name__ == "__main__":
    result = Array('i', 3)
    input_array = ["Jesse", "Walter", "Soul"]
    procs = [Process(target=process_handler, args=(i, input_array, result)) for i in range(3)]
    for proc in procs:
        proc.start()
    for proc in procs:
        proc.join()
    print("Result", result[:])