📌  相关文章
📜  [已解决] TypeError: can't multiply sequence by non-int of type str - Python Code Example

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

代码示例1
tax_percentage = 5
fare_price = float(input("Please enter the fare amount charged  "))
distance = float(input("Please enter the distance travelled to calculate the total fare -  "))
total_fare = (fare_price * distance) * (5/100)
print(total_fare)