Feb-03-2020, 05:50 PM
There are different "types" of information in python. "int" refers to "integer", and "str" refers to "string". You inputs collect a "string", which is just a series of characters, could be letters or numbers and has no mathematical value. If you want to do math with a string you need to convert it to a number-type variable first.
#here is one way electricityCost = ((wattage * int(hoursUsed))/(1000 * int(pricePerKWh)))