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}".format(1.1, "million"))
--
Steven
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
