String formatting
num = 1 / 3.0 print "%e" % num # string formatting print "%2.2f" % num # string formatting