Python Compiler : Python

#To demonstrate, we insert the number 6 to specify the available space for the value. #Use "=" to place the plus/minus sign at the left most position: txt = "The temperature is {:=6} degrees celsius." print(txt.format(-3))