Hello! I was go through this lesson
and faced the error :
TypeError: unsupported operand type(s) for +=: ‘int’ and 'str’
The code is
lovely_loveseat_description = 'text' lovely_loveseat_price = 254.00 lovely_loveseat_price = 'text' stylish_settee_price = 180.50 luxurious_lamp_description = 'text' luxurious_lamp_price = 52.15 sales_tax = .088 customer_one_total = 0 customer_one_itemization = " " customer_one_total += lovely_loveseat_price print (customer_one_total)
So it gives an error on that line
customer_one_total += lovely_loveseat_price
and, as I understand it, it’s not working because it’s a numerical type of data. But how can I calculate that data if I change it to a string?
I also watched a walkthrough video and did all the same as in the video and still get this error.
Would be very thankful if you can explain why the error is occurring, what it means and how to fix it.
Or any link where I can get the information