def currency(x): """Formats numbers as currency ($#.##)""" return "${:.2f}".format(x)