def bond_price(par_value, coupon, market_rate, n):
    """
	Prices a Zero-Coupon Bond
	par_value= bond's par value (base)
	coupon= bond yield (0.n format)
	market_rate= market return rate (0.n format)
	n= years into future
	"""
    c = par_value * coupon
    return c / market_rate * (1 - 1 / (1 + market_rate) ** n) + par_value / (
        1 + market_rate) ** n
