Get your own Python server Result Size: 625 x 565
x
 
#To demonstrate, we insert the number 8 to specify the available space for the value.
#Use "=" to place the plus/minus sign at the left most position:
txt = f"The temperature is {-5:=8} degrees celsius."
print(txt)
The temperature is -      5 degrees.