I am writing out a code that is about the user entering information about the dimensions of a room. The code contains this subprogram:
def area(input_number1, input_number2):
variable = input_number1 * input_number2
return variable
This subprogram's function is to generate the area of a wall by the user entering the length and width and it returns the area to the user. For some reason, it isn't working?
It returns this error message:
TypeError: can't multiply sequence by non-int of type 'str'