Using Python 2.7 how do I round my numbers to two decimal places rather than the 10 or so it gives?
print \"financial return of outcome 1 =\",\"$\"+str(out1)
You can use str.format(), too:
>>> print "financial return of outcome 1 = {:.2f}".format(1.23456) financial return of outcome 1 = 1.23