Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

TypeError: ‘float’ object is not callable

item_price = [5.2, 3.3, 5.4, 2.7]
tax_percentage = 5.2
total_value = sum(item_price)
tax_value = total_value*(tax_percentage/100)
print(" The tax amount for the order is:", tax_value)
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #object #callable
ADD COMMENT
Topic
Name
1+3 =