def product(factors : list, default):
	"""
	factors is just a list of everything you are multiplying together
	works like built-in sum function
	takes a default by which to multiply everything
	"""
	
	p = default
	for x in factors:
		p *= x
	return p