Center a string : Center : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Center »

 

Center a string


string1 = "Now I am here."

print string1.center50 )
print string1.rjust50 )
print string1.ljust50 )



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Center