# Task:
Given a list of numbers, determine whether the sum of its elements is odd or even.

Give your answer as a string matching `"odd"` or `"even"`.

If the input array is empty consider it as: `[0]` (array with a zero).

## Example:

```
odd_or_even([0])          ==  "even"
odd_or_even([0, 1, 4])    ==  "odd"
odd_or_even([0, -1, -5])  ==  "even"
```

Have fun!

Difficulty: EASY
Starter code: def odd_or_even(arr):
	

Solutions:
def odd_or_even(arr):
	return 'even' if sum(arr) % 2 == 0 else 'odd'


def odd_or_even(arr):
	return ('even', 'odd')[sum(arr) % 2]


def odd_or_even(arr):
	sum = 0
	answer = ''
	for el in arr:
		sum += el
	if sum % 2 == 0:
		answer = 'even'
	else:
		answer = 'odd'
	return answer


def odd_or_even(arr):
	if len(arr) == 0:
		return 'even'
	else:
		total = 0
		for item in arr:
			total += item
		if total % 2:
			return 'odd'
		else:
			return 'even'


def odd_or_even(arr):
	counter = 0
	for i in arr:
		counter += int(i)
	if counter % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	test = sum(arr[-len(arr):]) % 2
	if test == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	zum = 0
	for i in arr:
		zum += i
	if zum % 2 == 0:
		return 'even'
	else:
		return 'odd'


_ = {True: 'odd', False: 'even'}

def odd_or_even(arr):
	return _.get(sum(arr) % 2)


import math

def odd_or_even(arr):
	i = sum(arr)
	if i % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	a = 0
	for i in range(len(arr)):
		a += arr[i]
	if a % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	if sum(arr) % 2 == 0:
		return 'even'
	elif not sum(arr) % 2 == 0:
		return 'odd'


def odd_or_even(arr):
	sum = 0
	for x in arr:
		sum += x
	return 'even' * int(1 - sum % 2) + 'odd' * (sum % 2)


def odd_or_even(arr):
	array = []
	for n in arr:
		total = sum(arr)
		if total % 2 == 0:
			return 'even'
		else:
			return 'odd'


odd_or_even = lambda a: 'odd' if sum(a) % 2 != 0 else 'even'


def odd_or_even(arr):
	if arr == []:
		return [0]
	elif sum(arr) > 0:
		if sum(arr) % 2 == 0:
			return 'even'
		else:
			return 'odd'
	elif sum(arr) < 0:
		if -1 * sum(arr) % 2 == 0:
			return 'even'
		else:
			return 'odd'


def odd_or_even(arr):
	result = 0
	for item in arr:
		result += item
	if result % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	sum = 0
	for i in arr:
		sum += i
	if sum % 2 == 0:
		return 'even'
	elif sum % 2 != 0:
		return 'odd'
	elif sum == 0:
		return [0]
odd_or_even([0, 1, 2])


def odd_or_even(a):
	if sum(a) % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	if sum(arr[:]) % 2 == 1:
		result = 'odd'
	else:
		result = 'even'
	return result


def odd_or_even(arr):
	sum = 0
	for x in arr:
		sum = sum + x
	if sum % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	sum = 0
	for X in arr:
		sum = sum + X
		remainder = sum % 2
	if remainder == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	sum = 0
	for char in arr:
		sum = sum + int(char)
	return 'even' if sum % 2 == 0 else 'odd'


def odd_or_even(arr):
	i = 0
	for x in arr:
		i += x
	if i % 2 == 0:
		return f"{'even'}"
	else:
		return f"{'odd'}"


def odd_or_even(arr):
	sum = 0
	for i in arr:
		sum += i
	if abs(sum) % 2 == 0:
		return 'even'
	else:
		return 'odd'


odd_or_even = lambda a: ['even', 'odd'][sum(a) % 2]


def odd_or_even(arr):
	list = [i for i in arr]
	su = sum(list)
	if su == 0:
		return 'even'
	elif su % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	result = 0
	for number in arr:
		result = result + number
	if result % 2 == 0:
		return 'even'
	return 'odd'


import functools

def odd_or_even(arr):
	return 'even' if functools.reduce(lambda x, y: x + y, arr) % 2 == 0 else 'odd'


def odd_or_even(arr):
	res = 0
	for i in arr:
		res += i
	if res % 2 == 0:
		return 'even'
	return 'odd'


def odd_or_even(arr):
	a = 0
	for i in arr:
		a = a + i
	if a % 2 == True:
		return 'odd'
	else:
		return 'even'


def odd_or_even(arr):
	add = 0
	for num in arr:
		add += num
	if len(arr) == 0:
		return [0]
	if add % 2 == 0:
		return 'even'
	return 'odd'


def odd_or_even(arr):
	suma = 0
	result = ''
	if len(arr) == 0:
		result = 'even'
	for x in arr:
		suma = suma + x
		if suma % 2 == 0:
			result = 'even'
		else:
			result = 'odd'
	return result


def odd_or_even(arr):
	if arr == []:
		arr = [0]
	total = sum(arr)
	if total % 2 == 0 or total == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	return {1: 'odd', 0: 'even'}[sum(arr) % 2]


def odd_or_even(arr):
	sum = 0
	for i in range(0, len(arr)):
		sum = sum + arr[i]
		i += 1
	if sum % 2 == 0:
		return 'even'
	else:
		return 'odd'
	pass


def odd_or_even(liste):
	somme = sum((i for i in liste))
	if somme % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	if len(arr) == 1 and sum(arr) == 0:
		return 'even'
	if sum(arr) % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	s = sum(arr)
	o = 'odd'
	e = 'even'
	if len(arr) > 0:
		if s % 2 == 1:
			return o
		else:
			return e
	else:
		return o


def odd_or_even(arr):
	added = sum(arr)
	if str(added)[-1] in '13579':
		return 'odd'
	else:
		return 'even'
	pass


def odd_or_even(arr):
	n = sum(arr)
	odd = [1, 3, 5, 7, 9]
	even = [2, 4, 6, 8, 0]
	if n % 10 in odd:
		return 'odd'
	else:
		return 'even'


def odd_or_even(array):
	return ('even', 'odd')[sum(array) % 2]


def odd_or_even(n: list):
	if len(n) == 0:
		return [0]
	elif sum(n) % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	summary = 0
	for item in range(len(arr)):
		summary = summary + arr[item]
	if summary % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	one = 0
	for num in arr:
		one += num
	if one % 2 == 0:
		return 'even'
	elif one % 2 != 0:
		return 'odd'


def odd_or_even(arr):
	y = int()
	for x in range(0, len(arr)):
		y += arr[x]
	if y % 2 == 0:
		return 'even'
	else:
		return 'odd'


def odd_or_even(arr):
	return 'even' if sum(arr) % 2 == 0 else 'odd'
s = [1, 2, 3, 4, 5, 6, 7, 8, 9]
print(odd_or_even(s))


def odd_or_even(arr):
	res = sum(map(int, arr))
	return 'even' if res % 2 == 0 else 'odd'
s = [0, 1, 3]
print(odd_or_even(s))


def odd_or_even(arr):
	arraytot = 0
	for e in arr:
		arraytot += e
	if arraytot % 2 == 0:
		return 'even'
	else:
		return 'odd'