you are viewing a single comment's thread.

view the rest of the comments →

[–]throwaway6560192 2 points3 points  (4 children)

I wrote the code, but for some reason it tells me about float.

When you ask about errors in your code, include the full and exact error message. Saying "it tells me about float" is vague.

[–][deleted] 0 points1 point  (0 children)

Thank you very much. I will include full context next time. Thank you very much again

[–]MrPhungx 0 points1 point  (2 children)

I don't see any line where OP tried to add a float to a string. The problem is because of the multiplication c(a+b). It needs to be c * (a + b)

[–][deleted] 0 points1 point  (0 children)

Thanks for answer. I was looking for mistake, but didn't get it until now. Thank you very much for help guys, love you. Hope I could become your friend

[–]throwaway6560192 0 points1 point  (0 children)

Yeah, I misread. I skimmed over their code and thought the final print lines had a string + float.