Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

[Solved] TypeError: can’t multiply sequence by non-int of type str

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)
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #multiply #sequence #type #str
ADD COMMENT
Topic
Name
8+1 =