demo_string_placeholder14.py:
#Use "E" to convert a number into scientific number format (with an upper-case E): txt = "We have {:E} chickens." print(txt.format(5))
C:\Users\My Name>python demo_string_placeholder14.py
We have 5.000000E+00.