There's no need to concatenate all of this, you can just put commas between the things that you want to print.
(Python does not seem to want to concatenate the first string and `totalcost`.)