📌  相关文章
📜  解决方案 TypeError: can't multiply sequence by non-int of type 'float' - Python Code Example

📅  最后修改于: 2022-03-11 14:46:13.902000             🧑  作者: Mango

代码示例1
order_value = input("Enter the order value ")
discount = 0.05

total_cost = order_value - (order_value * discount)
print(round(total_cost, 2))