Https://www.codecademy.com/courses/learn-python-3/projects/sals-shipping

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile:

https://www.codecademy.com/courses/learn-python-3/projects/sals-shipping

On project Walkthrough for #6 and 7
“The cheapest option available is $%.2f with %s shipping.”
%(cost,method)

what is %.2f and %s
how is % used on this?

1 Like

its string formatting:

https://realpython.com/python-string-formatting/#1-old-style-string-formatting-operator

allowing you to insert variables into a string. the %s and %f are placeholders

1 Like