Hello, I'm new to Python and I'm trying to type some code for an assignment. It seemed relatively easy but it turned out being a hassle.
I get the following error with the running of the code:
I get the following error with the running of the code:
Error:TypeError: can't multiply sequence by non-int of type 'str'
Here is my code:hours = input('Enter Hours:') float(hours) rate = input('Enter Rate:') float(rate) pay = hours * rate print('Pay:' + pay)The error is occurring at the line:
pay = hours * rateCan someone please tell me what is wrong? I just can't seem to find the error.