Aug-26-2017, 03:13 AM
(Aug-25-2017, 04:20 PM)ichabod801 Wrote: In the future, please put your code in python tags, see the BBCode link in my signature below. Also, it helps a lot if you give us the full text of the error you are getting.
In this case, you are trying to add a float to a string on the last line, which you can't do. You need to convert cost to a string. The easiest way to do this is withstr(cost)
If you have been taught the format method of strings, you should review that. It will give you more control over how the output is formatted.
Thank you so much. We have not been taught much to be honest.