Given a string, capitalize the letters that occupy even indexes and odd indexes separately, and return as shown below. Index `0` will be considered even.

For example, `capitalize("abcdef") = ['AbCdEf', 'aBcDeF']`. See test cases for more examples.

The input will be a lowercase string with no spaces.

Good luck!

If you like this Kata, please try: 

[Indexed capitalization](https://www.codewars.com/kata/59cfc09a86a6fdf6df0000f1)

[Even-odd disparity](https://www.codewars.com/kata/59c62f1bdcc40560a2000060)

Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code:
def capitalize(s):
	

Solutions:
def capitalize(s):
	s = ''.join((c if i % 2 else c.upper() for (i, c) in enumerate(s)))
	return [s, s.swapcase()]


def capitalize(s):
	result = ['', '']
	for (i, c) in enumerate(s):
		result[0] += c.lower() if i % 2 else c.upper()
		result[1] += c.upper() if i % 2 else c.lower()
	return result


def capitalize(s):
	word = ''
	output = []
	for n in range(0, len(s)):
		if n % 2 == 0:
			word = word + s[n].upper()
		else:
			word = word + s[n]
	output.append(word)
	output.append(word.swapcase())
	return output


def capitalize(s):
	return [''.join((c if (k + i) % 2 else c.upper() for (i, c) in enumerate(s))) for k in [0, 1]]


def capitalize(s):
	(arr, arr1) = (list(s), list(s))
	(arr[::2], arr1[1::2]) = (s[::2].upper(), s[1::2].upper())
	return [''.join(arr), ''.join(arr1)]


def capitalize(s):
	return [''.join((x if i % 2 else x.upper() for (i, x) in enumerate(s))), ''.join((x.upper() if i % 2 else x for (i, x) in enumerate(s)))]


def capitalize(s):
	index = 0
	string1 = ''
	string2 = ''
	for i in s:
		if index % 2 == 0:
			string1 += i.upper()
			string2 += i
			index += 1
		else:
			string1 += i
			string2 += i.upper()
			index += 1
	return [string1, string2]


def capitalize(s):
	s1 = ''.join((s[i].upper() if i % 2 == 0 else s[i] for i in range(0, len(s))))
	s2 = ''.join((s[i].upper() if i % 2 != 0 else s[i] for i in range(0, len(s))))
	return [s1, s2]


def capitalize(s):
	a = ''
	for (i, v) in enumerate(s):
		a += v.upper() if i % 2 == 0 else v
	return [a, a.swapcase()]


def capitalize(s):
	alternate = ''.join((x.lower() if c % 2 == 1 else x.upper() for (c, x) in enumerate(s)))
	return [alternate, alternate.swapcase()]


from itertools import cycle

def capitalize(s):
	func = cycle((str.upper, str.lower))
	result = ''.join((next(func)(a) for a in s))
	return [result, result.swapcase()]


capitalize = lambda s: [''.join((chr(ord(c) - i % 2 * 32) for (i, c) in enumerate(s, n))) for n in [1, 0]]


def capitalize(s):
	return [''.join(([c, c.upper()][i % 2] for (i, c) in enumerate(s, a))) for a in (1, 0)]


capitalize = lambda s, f=lambda s, p: ''.join((e if i % 2 == p else e.upper() for (i, e) in enumerate(s))): [f(s, 1), f(s, 0)]


def capitalize(s):
	lst1 = []
	for n in range(0, len(s)):
		if n % 2 == 0:
			lst1.append(s[n].upper())
		else:
			lst1.append(s[n].lower())
	return [''.join(lst1), ''.join(lst1).swapcase()]


def capitalize(s):
	odd = []
	even = []
	for i in range(0, len(s)):
		if i % 2 == 0:
			odd.append(s[i].upper())
		else:
			odd.append(s[i])
	for i in range(0, len(s)):
		if not i % 2 == 0:
			even.append(s[i].upper())
		else:
			even.append(s[i])
	return [''.join(odd), ''.join(even)]


def capitalize(s):
	even = ''.join((w.upper() if i % 2 else w.lower() for (i, w) in enumerate(s)))
	odd = ''.join((w.lower() if i % 2 else w.upper() for (i, w) in enumerate(s)))
	return [odd, even]


def capitalize(s):
	d = str(s)
	w = ''
	f = ''
	g = []
	for i in range(len(d)):
		if i % 2 == 0:
			w += d[i].upper()
		else:
			w += d[i]
	for i in range(len(d)):
		if i % 2 == 0:
			f += d[i].lower()
		else:
			f += d[i].upper()
	g.append(w)
	g.append(f)
	return g


def capitalize(s):
	s.lower()
	z = s.__len__()
	count = 1
	i = 0
	new_one = ''
	new_two = ''
	while i < z:
		if (i + 1) % 2 == 0 and i > 0:
			new_one = new_one.ljust(count, str(s[i].upper()))
			new_two = new_two.ljust(count, str(s[i]))
			count = count + 1
			i = i + 1
		else:
			new_two = new_two.ljust(count, str(s[i].upper()))
			new_one = new_one.ljust(count, str(s[i]))
			count = count + 1
			i = i + 1
	answer = [new_two, new_one]
	return answer


def capitalize(s):
	a1 = ''
	a2 = ''
	for (i, v) in enumerate(s, 1):
		if i % 2:
			a1 += v.upper()
			a2 += v.lower()
		else:
			a1 += v.lower()
			a2 += v.upper()
	return [a1, a2]


def capitalize(s):
	i = 0
	ret = []
	for _ in range(2):
		alt = ''
		for e in s:
			alt += [e.upper(), e.lower()][i]
			i = not i
		ret.append(alt)
		i = [not i, i][len(alt) % 2]
	return ret


def capitalize(s):
	ret = [''] * 2
	for i in range(len(s)):
		ret[i % 2] += s[i].upper()
		ret[(i + 1) % 2] += s[i]
	return ret


def capitalize(s):
	(alt, out) = ([0, 1], [list(s), list(s)])
	for i in alt:
		for j in range(len(s)):
			if j % 2 == i:
				out[i][j] = out[i][j].upper()
	return [''.join([x for x in y]) for y in out]


def capitalize(s):
	Even = ''
	Odd = ''
	Result = []
	for i in range(len(s)):
		if i % 2 == 0:
			Even += s[i].upper()
		else:
			Even += s[i]
		if i % 2 != 0:
			Odd += s[i].upper()
		else:
			Odd += s[i]
	Result.append(Even)
	Result.append(Odd)
	return Result


def capitalize(s):
	vars = []
	for num in range(2):
		buf = ''
		for ind in range(len(s)):
			if ind % 2 == num:
				buf += s[ind].upper()
			else:
				buf += s[ind]
		vars.append(buf)
	return vars


capitalize = lambda Q: [''.join((V if 1 & F else V.upper() for (F, V) in enumerate(Q))), ''.join((V.upper() if 1 & F else V for (F, V) in enumerate(Q)))]


def capitalize(s):
	odd = s[::2]
	even = s[1::2]
	if len(odd) != len(even):
		even = even + ' '
	cap = ''
	for i in range(len(even)):
		cap += odd[i].upper() + even[i]
	cap2 = ''
	for i in range(len(even)):
		cap2 += odd[i] + even[i].upper()
	return [cap.strip(), cap2.strip()]


def capitalize(s):
	list_a = list(s)
	temp_list1 = []
	temp_list2 = []
	counter = 0
	for i in list_a:
		if counter % 2 == 0:
			temp_list1.append(chr(ord(list_a[counter]) - 32))
		else:
			temp_list1.append(list_a[counter])
		counter += 1
	temp_str1 = ''.join(temp_list1)
	counter = 0
	for i in list_a:
		if counter % 2 != 0:
			temp_list2.append(chr(ord(list_a[counter]) - 32))
		else:
			temp_list2.append(list_a[counter])
		counter += 1
	temp_str2 = ''.join(temp_list2)
	return [temp_str1, temp_str2]


def capitalize(s):
	even = ''
	odd = ''
	for (ind, char) in enumerate(s):
		if ind % 2 == 0:
			even += char.upper()
			odd += char
		elif ind % 2 != 0:
			odd += char.upper()
			even += char
	return [even, odd]


def capitalize(s):
	list = []
	ret = ''
	i = True
	for char in s:
		if i:
			ret += char.upper()
		else:
			ret += char.lower()
		if char != ' ':
			i = not i
	list.append(ret)
	ret2 = ret.swapcase()
	list.append(ret2)
	return list


def capitalize(s):
	evens = ''
	odds = ''
	for i in range(0, len(s)):
		if i % 2 == 0:
			evens = evens + s[i].upper()
		else:
			evens = evens + s[i]
	for i in range(0, len(s)):
		if i % 2 == 0:
			odds = odds + s[i]
		else:
			odds = odds + s[i].upper()
	return [evens, odds]


def capitalize(s):
	x = 2
	z = 2
	string = ''
	string2 = ''
	for (i, y) in zip(s, s):
		if x % 2 == 0:
			string = string + i.upper()
			x += 1
		else:
			string = string + i
			x += 1
		if z % 2 != 0:
			string2 = string2 + i.upper()
			z += 1
		else:
			string2 = string2 + i
			z += 1
	return [string, string2]


def capitalize(s):
	abc = ''.join([k.capitalize() for k in [s[i - 2:i] for i in range(2, len(s) + 2, 2)]])
	return [abc, ''.join([a.upper() if a == a.lower() else a.lower() for a in list(abc)])]


def capitalize(s):
	return [''.join((ch.upper() if i % 2 == 0 else ch for (i, ch) in enumerate(s))), ''.join((ch.upper() if i % 2 == 1 else ch for (i, ch) in enumerate(s)))]


from itertools import cycle

def capitalize(s):
	fss = map(cycle, ((str.upper, str.lower), (str.lower, str.upper)))
	return [''.join((f(c) for (f, c) in zip(fs, s))) for fs in fss]


def capitalize(s):
	st = ''
	st1 = ''
	for i in range(len(s)):
		if i % 2 == 0:
			st += s[i].upper()
			st1 += s[i].lower()
		else:
			st1 += s[i].upper()
			st += s[i].lower()
	return [st, st1]


def capitalize(s):
	array = list(s)
	(output1, output2) = ([], [])
	for (i, letter) in enumerate(array):
		if i % 2 == 0:
			output1.append(letter.upper())
			output2.append(letter.lower())
		else:
			output1.append(letter.lower())
			output2.append(letter.upper())
	output3 = ''.join(output1)
	output4 = ''.join(output2)
	return [output3, output4]


def capitalize(s):
	s_lower = ''.join((s.lower() if i % 2 == 0 else s.upper() for (i, s) in enumerate(s)))
	s_upper = ''.join((s.upper() if i % 2 == 0 else s.lower() for (i, s) in enumerate(s)))
	return [s_upper] + [s_lower]


def capitalize(s):
	a = ''.join([char.upper() if not index % 2 else char for (index, char) in enumerate(s)])
	b = ''.join([char.upper() if index % 2 else char for (index, char) in enumerate(s)])
	return [a, b]


def capitalize(s):
	al = list(s)
	ab = list(s)
	l = []
	for i in range(0, len(al)):
		if i % 2 == 0:
			al[i] = al[i].upper()
		else:
			ab[i] = al[i].upper()
	l.append(''.join(al))
	l.append(''.join(ab))
	return l


def capitalize(s):
	new = ''
	new1 = ''
	out = []
	for i in range(len(s)):
		if i % 2 == 0:
			new += s[i].upper()
		else:
			new += s[i]
	out.append(new)
	for i in range(len(s)):
		if i % 2 == 0:
			new1 += s[i]
		else:
			new1 += s[i].upper()
	out.append(new1)
	return out


def capitalize(s):
	first = []
	second = []
	for i in range(len(s)):
		first.append(s[i].upper() if i % 2 == 0 else s[i].lower())
	for j in range(len(s)):
		second.append(s[j].upper() if j % 2 != 0 else s[j].lower())
	return [''.join(first), ''.join(second)]


def capitalize(s):
	ret = ''
	ter = ''
	i = True
	for char in s:
		if i:
			ret += char.upper()
		else:
			ret += char.lower()
		if char != ' ':
			i = not i
	i = True
	for char in s:
		if not i:
			ter += char.upper()
		else:
			ter += char.lower()
		if char != ' ':
			i = not i
	return [ret, ter]


def capitalize(s):
	s1 = ''
	s2 = ''
	for i in range(0, len(s)):
		to_add = s[i]
		if i % 2 == 0:
			s1 = s1 + to_add.capitalize()
			s2 = s2 + to_add
		else:
			s2 = s2 + to_add.capitalize()
			s1 = s1 + to_add
	return [s1, s2]
	return [s1, s2]


def capitalize(s):
	case_1 = ''
	case_2 = ''
	for i in range(len(s)):
		if i % 2 == 0:
			case_1 += s[i].upper()
		else:
			case_1 += s[i].lower()
	for i in range(len(s)):
		if i % 2 == 0:
			case_2 += s[i].lower()
		else:
			case_2 += s[i].upper()
	return [case_1, case_2]


def capitalize(s):
	(newString, secondString) = ('', '')
	for (i, j) in enumerate(s):
		if i % 2 == 0:
			newString += j.upper()
		else:
			newString += j
	for (i, j) in enumerate(s):
		if i % 2 == 0:
			secondString += j
		else:
			secondString += j.upper()
	return [newString, secondString]


def capitalize(s):
	even_arr = ''
	for even in range(0, len(s)):
		if even % 2 == 0:
			even_arr += s[even].upper()
		else:
			even_arr += s[even]
	return [even_arr, even_arr.swapcase()]


def capitalize(s):
	a1 = a2 = ''
	for i in range(len(s)):
		if i % 2 == 0:
			a1 += s[i].upper()
			a2 += s[i]
		else:
			a2 += s[i].upper()
			a1 += s[i]
	return [a1, a2]


def capitalize(s):
	f1 = ''
	f2 = ''
	result = []
	for (i, v) in enumerate(s):
		if i == 0 or i % 2 == 0:
			f1 += v.upper()
		else:
			f1 += v.lower()
	result.append(f1)
	for (j, v) in enumerate(s):
		if j == 0 or j % 2 == 0:
			f2 += v.lower()
		else:
			f2 += v.upper()
	result.append(f2)
	return result


def capitalize(s):
	evens = []
	g = 0
	for char in s:
		if g % 2 == 0:
			evens.append(char.title())
		else:
			evens.append(char)
		g += 1
	odds = [x.swapcase() for x in evens]
	return [''.join(evens), ''.join(odds)]


def capitalize(s):
	a = ''
	b = ''
	for i in range(len(s)):
		if i % 2 != 1:
			a = a + s[i].upper()
			b = b + s[i]
		else:
			a = a + s[i]
			b = b + s[i].upper()
	return [a, b]
	pass


def capitalize(s):
	final1 = ''
	final2 = ''
	for x in range(len(s)):
		final1 += s[x].upper() if x % 2 == 0 else s[x]
	for x in final1:
		final2 += x.lower() if x.isupper() else x.upper()
	return [final1, final2]


def capitalize(s):
	str1 = ''
	str2 = ''
	for (i, c) in enumerate(s):
		if not i % 2:
			str1 += c.upper()
			str2 += c.lower()
		else:
			str2 += c.upper()
			str1 += c.lower()
	return [str1, str2]


def capitalize(s):
	even = ''
	odd = ''
	count = 0
	for i in s:
		if count % 2 == 0:
			even += i.upper()
			odd += i
		else:
			even += i
			odd += i.upper()
		count += 1
	lst = []
	lst.append(even)
	lst.append(odd)
	return lst


def capitalize(s):
	lst = ['', '']
	for i in range(0, len(s)):
		if i % 2 == 0:
			lst[0] += s[i].upper()
			lst[1] += s[i]
		else:
			lst[1] += s[i].upper()
			lst[0] += s[i]
	return lst


def capitalize(s):
	new1 = ''
	new2 = ''
	for i in range(len(s)):
		if i % 2 == 0:
			new1 += s[i].upper()
			new2 += s[i]
		else:
			new1 += s[i]
			new2 += s[i].upper()
	return [new1, new2]


def capitalize(s):
	a = ''
	big = True
	for i in s:
		if big == True:
			i = i.upper()
			big = False
		else:
			big = True
		a += i
	b = ''
	big = False
	for i in s:
		if big == True:
			i = i.upper()
			big = False
		else:
			big = True
		b += i
	return [a, b]


def capitalize(s):
	(x, y) = ('', '')
	for (i, j) in enumerate(s):
		if i % 2 == 0:
			x += j.upper()
			y += j.lower()
		else:
			y += j.upper()
			x += j.lower()
	return [x, y]


def capitalize(s):
	l = []
	x = ''
	for i in range(len(s)):
		if i % 2 == 0:
			j = s[i].capitalize()
			x += j
		else:
			x += s[i]
	w = ''
	for i in range(len(s)):
		if not i % 2 == 0:
			k = s[i].capitalize()
			w += k
		else:
			w += s[i]
	l.append(x)
	l.append(w)
	return l


def capitalize(s):
	(odd, even) = ([], [])
	for (i, a) in enumerate(s):
		if i % 2 == 0:
			even.append(a.capitalize())
			odd.append(a)
		else:
			even.append(a)
			odd.append(a.capitalize())
	return [''.join(even)] + [''.join(odd)]


def capitalize(s):
	cap1 = [s[i].upper() if not i % 2 else s[i] for i in range(len(s))]
	cap2 = [s[i].upper() if i % 2 else s[i] for i in range(len(s))]
	return [''.join(cap1), ''.join(cap2)]


def capitalize(s):
	return [''.join([s[i].lower() if i % 2 else s[i].upper() for i in range(len(s))]), ''.join([s[i].upper() if i % 2 else s[i].lower() for i in range(len(s))])]


def capitalize(s):
	lst = []
	print(s)
	(a, b) = ('', '')
	for i in range(len(s)):
		if i % 2 == 0 or i == 0:
			a = a + s[i].upper()
		else:
			a = a + s[i]
	for i in range(len(s)):
		if i % 2 != 0:
			b = b + s[i].upper()
		else:
			b = b + s[i]
	lst.append(a)
	lst.append(b)
	return lst


def capitalize(s):
	l = list(s)
	s_1 = ''
	s_2 = ''
	for i in range(len(l)):
		if i % 2 == 0:
			l[i] = l[i].capitalize()
		else:
			pass
		s_1 += l[i]
	return [s_1, s_1.swapcase()]


def capitalize(s):
	s1 = ''.join((a.upper() if i % 2 == 0 else a for (i, a) in enumerate(s)))
	s2 = ''.join((a.upper() if i % 2 != 0 else a for (i, a) in enumerate(s)))
	return [s1, s2]


def capitalize(s):
	my_string_1 = ''
	my_string_2 = ''
	i = 0
	for char in s:
		if i % 2 == 0:
			my_string_1 += s[i].upper()
			my_string_2 += s[i]
			i = i + 1
		elif i % 2 != 0:
			my_string_1 += s[i]
			my_string_2 += s[i].upper()
			i = i + 1
	arr = []
	arr.append(my_string_1)
	arr.append(my_string_2)
	return arr


def capitalize(s):
	i = 0
	s1 = ''
	s2 = ''
	while i < len(s):
		if i % 2 == 0:
			s1 += s[i].upper()
			s2 += s[i].lower()
		else:
			s1 += s[i].lower()
			s2 += s[i].upper()
		i += 1
	return [s1, s2]


def capitalize(s):
	even = []
	odd = []
	final = []
	for i in range(len(s)):
		if i % 2 == 0:
			a = s[i].capitalize()
			even.append(a)
		else:
			even.append(s[i])
	for i in range(len(s)):
		if i % 2 != 0:
			b = s[i].capitalize()
			odd.append(b)
		else:
			odd.append(s[i])
	finaleven = ''.join(even)
	finalodd = ''.join(odd)
	final.append(finaleven)
	final.append(finalodd)
	return final


def capitalize(s):
	x = ''
	for i in range(len(s)):
		if i % 2 == 0:
			x = x + s[i].upper()
		else:
			x = x + s[i].lower()
	y = ''
	for i in range(len(s)):
		if i % 2 == 0:
			y = y + s[i].lower()
		else:
			y = y + s[i].upper()
	return [x, y]


def capitalize(s):
	res = ''.join([s[i] if i % 2 else s[i].upper() for i in range(len(s))])
	return [res, res.swapcase()]


def capitalize(s):
	even = ''
	odd = ''
	for (i, c) in enumerate(s):
		if i % 2 == 0:
			even += c.upper()
			odd += c
		else:
			even += c
			odd += c.upper()
	return [even, odd]


def capitalize(s):
	return [''.join([s[i].upper() if not (i + k) % 2 else s[i] for i in range(len(s))]) for k in [0, 1]]


def capitalize(s):
	return [''.join([(j, j.upper())[i % 2 == 0] for (i, j) in enumerate(s)]), ''.join([(j, j.upper())[i % 2 == 1] for (i, j) in enumerate(s)])]


def capitalize(s):
	result = ''
	for index in range(len(s)):
		if not index % 2:
			result += s[index].upper()
		else:
			result += s[index].lower()
	arr = []
	arr.append(result)
	arr.append(result.swapcase())
	return arr


def capitalize(s):
	x = []
	b = ''
	for i in range(len(s)):
		if i % 2 == 0:
			c = s[i].upper()
			b += c
		else:
			c = s[i].lower()
			b += c
	x.append(b)
	d = b.swapcase()
	x.append(d)
	return x


def capitalize(s):
	(string_even, string_odd) = ([], [])
	for (i, n) in enumerate(s):
		if i % 2 == 0:
			string_even.append(n.upper())
		else:
			string_even.append(n)
	for (i, n) in enumerate(s):
		if i % 2 != 0:
			string_odd.append(n.upper())
		else:
			string_odd.append(n)
	return [''.join(string_even), ''.join(string_odd)]


def capitalize(s):
	x = list(s)
	y = [x[n].upper() if n % 2 == 0 else x[n] for (n, i) in enumerate(x)]
	z = [x[n].upper() if n % 2 == 1 else x[n] for (n, i) in enumerate(x)]
	return [''.join(y), ''.join(z)]


def capitalize(s):
	o1 = ''
	o2 = ''
	uf = True
	for c in s:
		if uf:
			o1 += c.upper()
			o2 += c
			uf = False
		else:
			o2 += c.upper()
			o1 += c
			uf = True
	return [o1, o2]


def capitalize(s):
	s = s.lower()
	even_str = ''
	for i in range(len(s)):
		if i % 2 == 0:
			even_str += s[i].upper()
		else:
			even_str += s[i]
	return [even_str, even_str.swapcase()]


def capitalize(s):
	new_string = ''
	new_string1 = ''
	for i in range(len(s)):
		if i % 2 == 0:
			new_string += s[i].upper()
		else:
			new_string += s[i]
	for j in range(len(s)):
		if j % 2 != 0:
			new_string1 += s[j].upper()
		else:
			new_string1 += s[j]
	return [f'{new_string}', f'{new_string1}']


def capitalize(s):
	st = list(s)
	caps = []
	for i in range(1, len(st), 2):
		st[i] = st[i].upper()
	caps.append(''.join(st))
	st = list(s)
	for i in range(0, len(st), 2):
		st[i] = st[i].upper()
	caps.append(''.join(st))
	return caps[::-1]


def capitalize(str):
	resArr = []

	def one(string):
		resStr = ''
		for index in range(len(string)):
			if index % 2 == False:
				resStr = resStr + string[index].upper()
			else:
				resStr = resStr + string[index].lower()
		return resStr

	def two(string):
		resStr = ''
		for index in range(len(string)):
			if index % 2 == False:
				resStr = resStr + string[index].lower()
			else:
				resStr = resStr + string[index].upper()
		return resStr
	resArr.append(one(str))
	resArr.append(two(str))
	return resArr


def capitalize(s):
	p = len(s)
	newar = []
	o = ''
	e = ''
	for i in range(0, p):
		if i & 1:
			e += s[i].upper()
			o += s[i]
		else:
			e += s[i]
			o += s[i].upper()
	newar.append(o)
	newar.append(e)
	return newar


def capitalize(s):
	return [''.join([c if k % 2 else c.upper() for (k, c) in enumerate(s)]), ''.join([c.upper() if k % 2 else c for (k, c) in enumerate(s)])]


def capitalize(s):
	result = []
	first = ''
	for c in range(len(s)):
		if c % 2 == 0:
			first += s[c].capitalize()
		else:
			first += s[c]
	second = ''
	for c in range(len(s)):
		if c % 2 == 0:
			second += s[c]
		else:
			second += s[c].capitalize()
	return [first, second]


def capitalize(s):
	even = ''
	odd = ''
	bigArr = []
	for i in range(len(s)):
		if i % 2 == 0:
			even += s[i].upper()
			odd += s[i].lower()
		else:
			even += s[i].lower()
			odd += s[i].upper()
	return [even, odd]


def capitalize(s):
	return [''.join([char.lower() if i % 2 == 1 else char.upper() for (i, char) in enumerate(s)]), ''.join([char.lower() if i % 2 == 0 else char.upper() for (i, char) in enumerate(s)])]


def capitalize(s):
	t1 = ''
	t2 = ''
	for (i, j) in enumerate(s):
		if i % 2 == 0:
			t1 += j.upper()
			t2 += j
		else:
			t1 += j
			t2 += j.upper()
	return [t1, t2]


def capitalize(s):
	s1 = ''
	s2 = ''
	index = 0
	k = 0
	l = []
	for i in s:
		if index % 2 == 0:
			s1 += i.upper()
		else:
			s1 += i
		index += 1
	for j in s:
		if k % 2 != 0:
			s2 += j.upper()
		else:
			s2 += j
		k += 1
	l.append(s1)
	l.append(s2)
	return l


def capitalize(s):
	first = ''.join((v.upper() if i % 2 == 0 else v for (i, v) in enumerate(s)))
	second = ''.join((v.upper() if i % 2 != 0 else v for (i, v) in enumerate(s)))
	return [first, second]