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