It's the most hotly anticipated game of the school year - Gryffindor vs Slytherin! Write a function which returns the winning team. 

You will be given two arrays with two values. 

The first given value is the number of points scored by the team's Chasers and the second a string with a 'yes' or 'no' value if the team caught the golden snitch!

The team who catches the snitch wins their team an extra 150 points - but doesn't always win them the game.

If the score is a tie return "It's a draw!""

** The game only ends when someone catches the golden snitch, so one array will always include 'yes' or 'no.' Points scored by Chasers can be any positive integer.

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def game_winners(gryffindor, slytherin):
	

Solutions:
def game_winners(gryffindor, slytherin):
	(g, s) = (team[0] + 150 * (team[1] == 'yes') for team in [gryffindor, slytherin])
	return 'Gryffindor wins!' if g > s else 'Slytherin wins!' if s > g else "It's a draw!"


def game_winners(gryffindor, slytherin):
	g = gryffindor[0]
	s = slytherin[0]
	if gryffindor[1] == 'yes':
		g += 150
	else:
		s += 150
	if g > s:
		return 'Gryffindor wins!'
	elif g < s:
		return 'Slytherin wins!'
	else:
		return "It's a draw!"


def game_winners(*scores):
	(gry, sly) = (ch + 150 * (gs == 'yes') for (ch, gs) in scores)
	return "It's a draw!" if gry == sly else f"{('Gryffindor' if gry > sly else 'Slytherin')} wins!"


def game_winners(gryffindor, slytherin):
	(g, s) = map(lambda arr: arr[0] + 150 * (arr[1] == 'yes'), [gryffindor, slytherin])
	return ('Slytherin wins!', 'Gryffindor wins!', "It's a draw!")[(g > s) + 2 * (g == s)]


def game_winners(*args):
	((a, b), (c, d)) = args
	(sg, ss) = (a + 150 * (b == 'yes'), c + 150 * (d == 'yes'))
	return ["It's a draw!", 'Gryffindor wins!', 'Slytherin wins!'][(sg > ss) - (sg < ss)]


def game_winners(gryffindor, slytherin):
	(a, snitch) = gryffindor
	(b, litch) = slytherin
	if snitch == 'yes':
		if a + 150 > b:
			return 'Gryffindor wins!'
		elif a + 150 == b:
			return "It's a draw!"
		else:
			return 'Slytherin wins!'
	elif b + 150 > a:
		return 'Slytherin wins!'
	elif b + 150 == a:
		return "It's a draw!"
	else:
		return 'Gryffindor wins!'