Left justify : Ljust : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Ljust »

 

Left justify


hexStr = "3f8"


print "nHex String: " + hexStr.upper().ljust(8,'0')



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Ljust