def discounts(price, rate1):
    final_price = price * rate
    print('final price:', final_price)

old_price = float(input('请输入原价:'))
rate = float(input('请输入折扣率：'))
discounts(rate1 = rate, price = old_price)
