[Tutor] format integer to currency

ADRIAN KELLY kellyadrian at hotmail.com
Wed Nov 16 21:55:47 CET 2011


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

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111116/04f2b0a8/attachment.html>


More information about the Tutor mailing list