Whenever I go to print out a GBP sign followed by a number I get this error code.
Traceback (most recent call last):
File "main.py", line 65, in <module>
print (u"\xA3" + total_cost)
TypeError: can only concatenate str (not "float") to str
This is the code.
total_cost == 10
print (u"\xA3" + total_cost)
I would like for it to output £10.
Can someone help please?