python number format scientific code example Example: python print float in scientific notation v = 2.50435-e03 '%.2E' % v # returns '2.50E-03'