The issue arises because the string you are trying to print is not a string, rather a float value. Item1, item2 and item3 are strong values (if you type some alphabets in it and not just numbers), but itemonecost, itemtwocost, and itemthreecost are explicitly type casted to float. In line 22, 23, and 24 you’re trying to print a float, by adding it with the string. One cannot add numbers to string. Rather you can type cast the itemcost to string while printing.
Add str(itemonecost) instead of itemonecost in print statement. Do this for other float variables too.
However do note that there are multiple ways to correct this issue, and I’ve just pointed one out.
It should be noted that the process of redefining the functionality of a built-in operator to operate is known as <u>operator overloading</u>.
Operator overloading simply means polymorphism. It's a manner in which the operating system allows the same operator name to be used for different operations.
Operator overloading allows the operator symbols to be bound to more than one implementation. It's vital in redefining the functionality of a built-in operator to operate on programmer-defined objects.
Read related link on:
brainly.com/question/25487186
Answer:
ICT affects the governments by improving responsiveness, increasing efficiency and enhancing governance practices. And by letting them use their own technology.
Explanation:
tell me if it helped ^-^