def PrintReturns(pfx, d):
 print pfx, ('%1.5f(1w)  %1.5f(4w)  %1.5f(3m)  %1.5f(YTD)' % tuple((float(i) for i in (d.return1w, d.return4w, d.return3m, d.returnYTD))))
 pfx = (' ' * len(pfx))
 print pfx, ('%1.5f(1y)  %1.5f(3y)  %1.5f(5y)  %1.5f(overall)' % tuple((float(i) for i in (d.return1y, d.return3y, d.return5y, d.return_overall))))

def PrintReturns ( pfx , d ) : print pfx , ( '%1.5f(1w)  %1.5f(4w)  %1.5f(3m)  %1.5f(YTD)' % tuple ( ( float ( i ) for i in ( d . return1w , d . return4w , d . return3m , d . returnYTD ) ) ) ) pfx = ( ' ' * len ( pfx ) ) print pfx , ( '%1.5f(1y)  %1.5f(3y)  %1.5f(5y)  %1.5f(overall)' % tuple ( ( float ( i ) for i in ( d . return1y , d . return3y , d . return5y , d . return_overall ) ) ) )
print returns .