Complete the method that takes a boolean value and return a `"Yes"` string for `true`, or a `"No"` string for `false`.

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def bool_to_word(boolean):
	

Solutions:
def bool_to_word(bool):
	return 'Yes' if bool else 'No'


def bool_to_word(boolean):
	return 'Yes' if boolean else 'No'


def bool_to_word(bool):
	return ['No', 'Yes'][bool]


def bool_to_word(boolean):
	if boolean == True:
		return 'Yes'
	elif boolean == False:
		return 'No'


bool_to_word = {True: 'Yes', False: 'No'}.get


def bool_to_word(value):
	return 'Yes' if value else 'No'


bool_to_word = ['No', 'Yes'].__getitem__


bool_to_word = lambda b: b and 'Yes' or 'No'


def bool_to_word(bool):
	return bool and 'Yes' or 'No'


bool_to_word = lambda b: 'YNeos'[not b::2]


bool_to_word = lambda b: ['No', 'Yes'][b]


bool_to_word = lambda b: 'Yes' if b else 'No'


bool_to_word = lambda b: 'YNeos'[1 - b::2]


bool_to_word = {True: 'Yes', False: 'No'}.__getitem__


def bool_to_word(boolean):
	if boolean:
		return 'Yes'
	elif not boolean:
		return 'No'
	else:
		print("You're not real")


def bool_to_word(b):
	return ['No', 'Yes'][int(b)]


def bool_to_word(boolean):
	if str(boolean) == 'True':
		hasil = 'Yes'
	else:
		hasil = 'No'
	return hasil


bool_to_word = {0: 'No', 1: 'Yes'}.get


def bool_to_word(boolean):
	return ('No', 'Yes')[boolean]


def bool_to_word(boolean):
	if boolean == True:
		return 'Yes'
	elif boolean == False:
		return 'No'
	else:
		None


def bool_to_word(boolean_value):
	if boolean_value:
		return 'Yes'
	else:
		return 'No'


def bool_to_word(boolean):
	if boolean == True:
		return 'Yes'
	elif boolean == False:
		return 'No'
	else:
		return 'error, neither True nor False'


def bool_to_word(boolean):
	return 'Yes' if boolean is True else 'No'


def bool_to_word(boolean):
	i = boolean
	x = int(i)
	if x == 1:
		return 'Yes'
	elif x == 0:
		return 'No'


def bool_to_word(boolean):
	if bool(boolean) == 1:
		boolean = 'Yes'
	if bool(boolean) == 0:
		boolean = 'No'
	return boolean


def bool_to_word(boolean):
	if boolean == True:
		return 'Yes'
	if boolean == False:
		return 'No'
	else:
		print('Not valid.')


def bool_to_word(boolean):
	wert = bool(boolean)
	if wert == True:
		return 'Yes'
	else:
		return 'No'


def bool_to_word(boolean):
	bool = {True: 'Yes', False: 'No'}
	ans = bool.get(boolean)
	return ans


def bool_to_word(boolean):
	if bool(boolean):
		return 'Yes'
	return 'No'


def bool_to_word(boolean):
	if bool(boolean):
		result = 'Yes'
	else:
		result = 'No'
	return result


def bool_to_word(boolean):
	if boolean >= 1 or boolean == str():
		return 'Yes'
	else:
		return 'No'


def bool_to_word(statement):
	if statement == True:
		return 'Yes'
	elif statement == False:
		return 'No'


def bool_to_word(boolean):
	if boolean == True:
		return 'Yes'
	elif boolean == False:
		return 'No'
	else:
		pass
bool_to_word(True)


def bool_to_word(boolean):
	while boolean == True:
		return 'Yes'
	return 'No'


def bool_to_word(boolean):
	if boolean:
		string = 'Yes'
	elif not boolean:
		string = 'No'
	return string


def bool_to_word(boolean):
	if boolean == True:
		state = 'Yes'
		return state
	state = 'No'
	return state


def bool_to_word(boolean):
	if boolean == True:
		y = 'Yes'
		return y
	elif boolean == False:
		n = 'No'
		return n
bool_to_word(True)


def bool_to_word(b):
	d = {True: 'Yes', False: 'No'}
	return d.get(b)
bool_to_word(True)


def bool_to_word(boolean):
	dude = ''
	if boolean == True:
		dude = 'Yes'
	else:
		dude = 'No'
	return dude


bool_to_word = lambda bool: bool and 'Yes' or 'No'


def bool_to_word(boolean):
	if boolean:
		print('Yes')
		answer = 'Yes'
	if not boolean:
		print('No')
		answer = 'No'
	return answer


def bool_to_word(boolean):
	if type(boolean) != bool:
		return 'Not a boolean!'
	else:
		return 'Yes' if boolean else 'No'


def bool_to_word(boolean):
	outputtext = ''
	if boolean == True:
		outputtext = 'Yes'
	else:
		outputtext = 'No'
	return outputtext


def bool_to_word(boolean):
	if str(boolean) == 'False':
		return 'No'
	else:
		return 'Yes'


def bool_to_word(boolean):
	if boolean is True:
		value = 'Yes'
	elif boolean is False:
		value = 'No'
	return value


def bool_to_word(boolean: bool) -> str:
	return 'Yes' if boolean == True else 'No'


def bool_to_word(boolean):
	R = 'Yes'
	if boolean == True:
		R = 'Yes'
	else:
		R = 'No'
	return R


def bool_to_word(boolean):
	bool = {True: 'Yes', False: 'No'}
	return bool[boolean]


def bool_to_word(boolean):
	n = 'No'
	if boolean == True:
		n = 'Yes'
	return n


def bool_to_word(password):
	if password:
		return 'Yes'
	else:
		return 'No'


def bool_to_word(bolean):
	if bolean:
		return 'Yes'
	else:
		return 'No'


def bool_to_word(boolean):
	int(bool(boolean))
	if boolean == 1:
		return 'Yes'
	else:
		return 'No'


def bool_to_word(boolean):
	a = 'Yes'
	b = 'No'
	if boolean == True:
		return a
	if boolean == False:
		return b


def bool_to_word(boolean):
	test = 'No'
	if boolean:
		test = 'Yes'
	return test


def bool_to_word(boolean):
	sum = ''
	if boolean == True:
		sum = 'Yes'
	else:
		sum = 'No'
	return sum


def bool_to_word(boolean: bool) -> str:
	return {True: 'Yes', False: 'No'}.get(boolean)


def bool_to_word(boolean):
	if int(boolean) == 1:
		return 'Yes'
	elif int(boolean) == 0:
		return 'No'


def bool_to_word(x):
	if x == True:
		return 'Yes'
	elif x != True:
		return 'No'


def bool_to_word(boolean):
	yess = str(boolean)
	if yess == 'True':
		return 'Yes'
	else:
		return 'No'


def bool_to_word(you_mean_it):
	return 'Yes' if you_mean_it else 'No'


def bool_to_word(boolean):
	if boolean == 0:
		return 'No'
	return 'Yes'


def bool_to_word(i):
	if i == True:
		return 'Yes'
	elif i == False:
		return 'No'


def bool_to_word(boolean):
	answer = 'No'
	if boolean:
		answer = 'Yes'
	return answer


def bool_to_word(boolean):
	return 'Yes' if sum([boolean]) == 1 else 'No'


def bool_to_word(boolean):
	if not boolean == True:
		return 'No'
	else:
		return 'Yes'


def bool_to_word(boolean):
	return 'Yes' if boolean is True or False else 'No'


def bool_to_word(boolean):
	if boolean:
		return 'Yes'
	elif not boolean:
		return 'No'
	else:
		return 'None'


def bool_to_word(boolean):
	if boolean == 0 or False:
		return 'No'
	else:
		return 'Yes'


def bool_to_word(boolean):
	if type(boolean) == type(True):
		if boolean:
			return 'Yes'
		else:
			return 'No'
	else:
		raise TypeError('boolean was not of type boolean but of type {}'.format(type(boolean)))


def bool_to_word(boolean):
	val = boolean
	if val == 1:
		return 'Yes'
	else:
		return 'No'


def bool_to_word(boolean):
	return 'Yes' if boolean == True else 'No' if boolean == False else 0