Mega Code Archive

 
Categories / Python / String
 

Formatting example

string1 = "Now I am here." print string1.center( 50 ) print string1.rjust( 50 ) print string1.ljust( 50 )