def polynomial(coefficients):
	"""
	Create a polynomial from the given list of coefficients.

	For example, if the coefficients are [1, 0, 3, 5], then
	the polynomial returned is

	P(t) = t^3 + 3t + 5

	If the coefficients are [3, 2, -2, 9, 4, 0, 1, 0], then
	the polynomial returned is

	P(t) = 3t^7 + 2t^6 - 2t^5 + 9t^4 + 4t^3 + t
	"""
	def _f(x):
		result = 0
		for coefficient in coefficients:
			result = result * x + coefficient
		return result
	return _f