demo_string_placeholder6.py:
#Use "-" to always indicate if the number is negative (positive numbers are displayed without any sign): txt = "The temperature is between {:-} and {:-} degrees celsius." print(txt.format(-3, 7))
C:\Users\My Name>python demo_string_placeholder6.py
The temperature is between -3 and 7 degrees celsius.