Sal's shipping it should be number not str

I have get promblem again and again so i copied get unstuck video but thenthen also there is promblem it is showing parameter should be real number not str. I would really appreciate if you give solution code of this project or solution.

In line 41 you have the variables in the wrong order. Should be % (method, cost) to correspond with the placeholders.