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