def median(inlistin):
	"""median: Finds the median of the provided array.
	Args:
		inlistin (array): An array of numbers to find the median of
	Returns:
		Float: the median of the numbers given
	"""
	inlistin = sorted(inlistin)
	inlisto = 0
	length = len(inlistin)
	for x in range(int(length / 2) - 1):
		del inlistin[0]
		del inlistin[-1]
	if len(inlistin) == 2:
		inlisto = (int(inlistin[0] + inlistin[1]) / 2)
	else:
		inlisto = inlistin[1]
	return inlisto