I am trying to print a line with a with a float formatter to 2 decimal points like this:
print "You have a discount of 20% and the final cost of the item is'%.2f' dollars." % price
But when I do I get this error:
ValueError: unsupported format character 'a' (0x61) at index 27
What does this mean and how can I prevent it from happening?