I'm new to coding and now I want to get the sum of two arrays...actually the sum of all their elements. I'll appreciate for your help.

P.S. Each array includes only integer numbers. Output is a number too.

Difficulty: EASY
Tags: Fundamentals

Data structures
Skill types: Data structures

Starter code:
def array_plus_array(arr1,arr2):
	

Solutions:
def array_plus_array(arr1, arr2):
	return sum(arr1 + arr2)


def array_plus_array(*args):
	return sum(map(sum, args))


def array_plus_array(a, b):
	return sum(a + b)


def array_plus_array(arr1, arr2):
	counter = 0
	for i in arr1:
		counter += i
	for i in arr2:
		counter += i
	return counter


from itertools import chain

def array_plus_array(arr1, arr2):
	return sum(chain(arr1, arr2))


def array_plus_array(arr1, arr2):
	result = 0
	for (ar1, ar2) in zip(arr1, arr2):
		result = result + (ar1 + ar2)
	return result


def array_plus_array(A1, A2):
	return sum(A2 + A1)


from functools import reduce

def array_plus_array(arr1, arr2):
	arr0 = arr1 + arr2
	return reduce(lambda a, b: a + b, arr0)


def array_plus_array(arr1, arr2):
	counter = 0
	for i in range(len(arr1)):
		counter += arr1[i]
	for i in range(len(arr2)):
		counter += arr2[i]
	return counter


from itertools import chain

def array_plus_array(*arrays):
	return sum(chain.from_iterable(arrays))


array_plus_array = lambda a, b: sum(a + b)


def array_plus_array(arr1, arr2):
	sum1 = 0
	sum2 = 0
	for num1 in arr1:
		sum1 += num1
	for num2 in arr2:
		sum2 += num2
	return sum1 + sum2


from typing import List

def array_plus_array(arr1: List[int], arr2: List[int]) -> int:
	return sum(arr1 + arr2)


def array_plus_array(arr1, arr2):
	arr1.extend(arr2)
	sum = 0
	for i in arr1:
		sum = sum + i
	return sum


def array_plus_array(arr1, arr2):
	total1 = 0
	total2 = 0
	for a in arr1:
		total1 += a
	for b in arr2:
		total2 += b
	total = total1 + total2
	return total


def array_plus_array(arr1, arr2):
	arr = arr1 + arr2
	total = sum(arr)
	return total


def array_plus_array(arr1, arr2):
	sum1 = 0
	sum2 = 0
	for i in arr1:
		sum1 = sum1 + i
	for j in arr2:
		sum2 = sum2 + j
	return sum1 + sum2


def array_plus_array(arr1, arr2):
	list = arr1 + arr2
	sum = 0
	for n in list:
		sum += n
	return sum


array_plus_array = lambda x, y: sum(x) + sum(y)


def array_plus_array(x, y):
	sum = 0
	for i in x + y:
		sum += i
	return sum


def array_plus_array(arr1, arr2):
	counter_one = 0
	counter_two = 0
	for integers in arr1:
		counter_one = counter_one + integers
	for integers in arr2:
		counter_two = counter_two + integers
	output = counter_one + counter_two
	return output


def array_plus_array(arr1, arr2):
	return sum((i for a in [arr1, arr2] for i in a))


def array_plus_array(arr1, arr2):
	sum = 0
	for i in range(max(len(arr1), len(arr2))):
		sum = sum + arr1[i] + arr2[i]
	return sum


array_plus_array = lambda arr1, arr2: sum(arr1 + arr2)


def array_plus_array(arr1, arr2):
	sum = 0
	for elm in arr1:
		sum += elm
	for elm in arr2:
		sum += elm
	return sum


def array_plus_array(arr1, arr2):
	total1 = 0
	total2 = 0
	for i in arr1:
		total1 += i
	for i in arr2:
		total2 += i
	return total1 + total2


def array_plus_array(arr1, arr2):
	result = 0
	for value in arr1:
		result = result + value
	for value in arr2:
		result = result + value
	return result


def array_plus_array(arr1, arr2):
	sol = 0
	for a in arr1:
		sol = sol + a
	for b in arr2:
		sol = sol + b
	return sol


def array_plus_array(arr1, arr2):
	sum_list = []
	for (i1, i2) in zip(arr1, arr2):
		sum_list.append(i1 + i2)
	return sum(sum_list)


def array_plus_array(arr1, arr2):
	ans1 = sum(arr1)
	ans2 = sum(arr2)
	ans3 = ans1 + ans2
	return ans3


def array_plus_array(arr1, arr2):
	s = []
	t = 0
	s = arr1 + arr2
	print(s)
	for i in s:
		t += i
	return t


def array_plus_array(arr1, arr2):
	total_sum = 0
	for number in arr1:
		total_sum += number
	for num in arr2:
		total_sum += num
	return total_sum


def array_plus_array(arr1, arr2):
	z = 0
	y = 0
	for k in arr1:
		z += k
	for j in arr2:
		y += j
	x = z + y
	return x


def array_plus_array(arr1, arr2):
	soma = 0
	for i in range(len(arr1)):
		soma += arr1[i]
	for i in range(len(arr2)):
		soma += arr2[i]
	return soma


from functools import *

def array_plus_array(arr1, arr2):
	return int(reduce(lambda x, y: x + y, list(map(lambda x, y: x + y, arr1, arr2))))


def array_plus_array(x, y):
	return sum(x) + sum(y)


def array_plus_array(arr1, arr2):
	sum = 0
	sum1 = 0
	result = 0
	for i in arr1:
		sum += i
	for x in arr2:
		sum1 += x
	result += sum + sum1
	return result


def array_plus_array(arr1, arr2):
	arr1_sum = 0
	arr2_sum = 0
	for i in arr1:
		arr1_sum = arr1_sum + i
	for j in arr2:
		arr2_sum = arr2_sum + j
	total_sum = arr1_sum + arr2_sum
	return total_sum


array_plus_array = lambda *a: sum(sum(a, []))


def array_plus_array(arr1, arr2):
	a = 0
	b = 0
	for x in arr1:
		a += x
	for y in arr2:
		b += y
	sum = a + b
	return sum


def array_plus_array(arr1, arr2):
	arr = arr1 + arr2
	c = 0
	for i in arr:
		c += i
	return c


def array_plus_array(arr1, arr2):
	result1 = 0
	result2 = 0
	result = 0
	for number in arr1:
		result1 += number
	for number in arr2:
		result2 += number
	result = result1 + result2
	return result
	pass


def array_plus_array(arr1, arr2):
	sum1 = 0
	sum2 = 0
	for i in arr1:
		sum1 = i + sum1
	for i in arr2:
		sum2 = i + sum2
	sum = sum1 + sum2
	return sum


def array_plus_array(arr1, arr2):
	sum = 0
	for i in arr1:
		sum += i
	for u in arr2:
		sum += u
	return sum


def array_plus_array(arr1, arr2):
	arr1sum = 0
	arr2sum = 0
	for i in arr1:
		arr1sum += i
	for i in arr2:
		arr2sum += i
	return arr1sum + arr2sum


def array_plus_array(arr1, arr2):
	l = []
	for i in range(0, len(arr1)):
		l.append(arr1[i] + arr2[i])
	return sum(l)


def array_plus_array(arr1, arr2):
	list = [x + y for (x, y) in zip(arr1, arr2)]
	return sum(list)


def array_plus_array(arr1, arr2):
	return sum((num for num in arr1 + arr2))


def array_plus_array(arr1, arr2):
	sum1 = 0
	sum2 = 0
	for x in arr1:
		sum1 += x
	for y in arr2:
		sum2 += y
	return sum1 + sum2


def array_plus_array(arr1, arr2):
	sum1 = 0
	sum2 = 0
	for i in range(len(arr1)):
		sum1 += arr1[i]
	for x in range(len(arr2)):
		sum2 += arr2[x]
	return sum1 + sum2


def array_plus_array(arr1, arr2):
	sum = 0
	for el in arr1:
		sum += el
	for el_2 in arr2:
		sum += el_2
	return sum


def array_plus_array(arr1, arr2):
	total = 0
	full_list = arr1 + arr2
	for num in range(0, len(full_list)):
		total = total + full_list[num]
	return total


def array_plus_array(arr1, arr2):
	sum = arr1 + arr2
	num = 0
	for i in sum:
		num = num + i
	return num


array_plus_array = lambda x, y: sum([x[i] + y[i] for i in range(len(x))])


def array_plus_array(arr1, arr2):
	Liste = list()
	for index in range(len(arr1)):
		sum1 = arr1[index] + arr2[index]
		Liste.append(sum1)
	return sum(Liste)


import numpy as np

def array_plus_array(arr1, arr2):
	numpy_add = np.add(arr1, arr2)
	return sum(numpy_add)


def array_plus_array(arr1, arr2):
	x = arr1 + arr2
	total = 0
	for i in range(len(x)):
		total += x[i]
	return total


def array_plus_array(a1, a2):
	return sum(a1[0:] + a2[0:])


def array_plus_array(arr1, arr2):
	v = 0
	z = 0
	for x in arr1:
		v = v + x
	for x in arr2:
		z = z + x
	return v + z


def array_plus_array(arr1, arr2):
	import numpy as np
	s1 = np.sum(arr1)
	s2 = np.sum(arr2)
	return s1 + s2


def array_plus_array(arr1, arr2):
	v = sum(arr1)
	w = sum(arr2)
	return v + w
end = array_plus_array([0, 0, 0], [4, 5, 6])
print(end)


def array_plus_array(arr1, arr2):
	i = 0
	res = 0
	arr = arr1 + arr2
	while i < len(arr):
		res += arr[i]
		i += 1
	return res


def array_plus_array(a, b):
	nl = a + b
	sum = 0
	for n in nl:
		sum += n
	return sum


def array_plus_array(a, b):
	(newl, sum) = (a + b, 0)
	for n in newl:
		sum += n
	return sum


def array_plus_array(arr1, arr2):
	total1 = 0
	for num in arr1:
		total1 += num
	for num in arr2:
		total1 += num
	return total1


def array_plus_array(arr1, arr2):
	x = 0
	for n in arr1:
		x += n
	for m in arr2:
		x += m
	return x


def array_plus_array(arr1, arr2):
	return sum((i for i in arr1)) + sum((x for x in arr2))


def array_plus_array(arr1, arr2):
	resultado = 0
	for i in range(len(arr1)):
		resultado = resultado + arr1[i]
	for i in range(len(arr2)):
		resultado = resultado + arr2[i]
	return resultado


def array_plus_array(arr1, arr2):
	list1 = arr1 + arr2
	count = 0
	for x in list1:
		count += x
	return count


def array_plus_array(arr1, arr2):
	x = arr1 + arr2
	result = 0
	for i in x:
		result += i
	return result


def array_plus_array(arr1, arr2):
	ans = 0
	for x in arr1:
		ans += x
	for x in arr2:
		ans += x
	return ans


def array_plus_array(arr1, arr2):
	if not arr1:
		return None
	sum = 0
	for i in range(len(arr1)):
		sum += arr1[i] + arr2[i]
	return sum


def array_plus_array(arr1, arr2):
	s = 0
	for i in arr1:
		s = s + i
	for j in arr2:
		s = s + j
	return s


def array_plus_array(arr1, arr2):
	sarr1 = sum(arr1)
	sarr2 = sum(arr2)
	return sarr1 + sarr2


def array_plus_array(arr1, arr2):
	lst = arr1 + arr2
	sum = 0
	for item in lst:
		sum += item
	return sum


def array_plus_array(arr1, arr2):
	a = sum((i for i in arr1))
	b = sum((i for i in arr2))
	c = a + b
	return c


def array_plus_array(arr1, arr2):
	total = 0
	arr1.extend(arr2)
	for num in arr1:
		total += num
	return total


def array_plus_array(arr1, arr2):
	arr11 = sum(arr1)
	arr22 = sum(arr2)
	return arr11 + arr22


def array_plus_array(arr1, arr2):
	i = 0
	l = 0
	o = 0
	while i < len(arr1):
		l = l + arr1[i]
		i += 1
	i = 0
	while i < len(arr2):
		o = o + arr2[i]
		i += 1
	l = l + o
	return l


def array_plus_array(arr1, arr2):
	res1 = 0
	res2 = 0
	for i in arr1:
		res1 += i
	for j in arr2:
		res2 += j
	return res1 + res2


def array_plus_array(arr1, arr2):
	combined = arr1 + arr2
	res = 0
	for num in combined:
		res += num
	return res


def array_plus_array(arr1, arr2):
	d = 0
	for (a1, a2) in zip(arr1, arr2):
		x = a1 + a2
		d += x
	return d