I was doing this project and everything was all good until I came across the tutorial video on the bottom for it.
The guy uses this:
print("The cheapest option available is $%.2f with %s shipping." % (cost, method) )
(cost and method are already defined)
I don’t remember learning about this in any of the lessons. What does % do? Does it basically act as a variable? If so, why is there a .2 for the dollar one?
I thought it was to show the remainder of division…
Just what is that in general?