Formatting example:center, rjust, ljust : String rjust « String « Python






Formatting example:center, rjust, ljust

Formatting example:center, rjust, ljust
string1 = "Now I am here."

print string1.center( 50 )
print string1.rjust( 50 )
print string1.ljust( 50 )

           
       








Related examples in the same category