Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Issue TypeError: can’t multiply sequence by non-int of type str

tax_percentage = 5
fare_price = input("Please enter the fare amount charged  ")
distance = input("Please enter the distance travelled to calculate the total fare -  ")
total_fare = (fare_price * distance) * (5/100)
print(total_fare)
# visit site for solution
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Issue #multiply #sequence #type #str
ADD COMMENT
Topic
Name
7+3 =