Extract the £
(pound) currency symbol and the amount (56) from an html file. It is printing the amount as £56
and prints the currency as Â
. How can I print only 56, without the symbol? It is working fine with a $
sign.
Part of the code:
cost= "£56"
currencySymbol = cost[0]
print (currencySymbol, cost[1:])
The output I am getting:
Â: £56