Re: [Tutor] format integer to currency

2011-11-16 Thread Steven D'Aprano
ADRIAN KELLY wrote: print ("i own {0:.2f} {1}".format(1.1,"million")) can anyone help me with code to change the format of this to currency €1.10 million thanks for your help # Python 2.6 or 2.7 print (u"I own €{0:.2f} {1}".format(1.1, "million")) # Python 3 print ("I own €{0:.2f} {1}".for

[Tutor] format integer to currency

2011-11-16 Thread ADRIAN KELLY
print ("i own {0:.2f} {1}".format(1.1,"million")) can anyone help me with code to change the format of this to currency €1.10 million thanks for your help ___ Tutor maillist - Tutor@python.org To unsubscrib