Created
April 21, 2018 15:27
-
-
Save Fhernd/a819951717b6dab6c267aa6b6de5b3c3 to your computer and use it in GitHub Desktop.
Alineación de texto. OrtizOL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
texto = 'OrtizOL' | |
print(texto.ljust(20)) | |
print(texto.rjust(20)) | |
print(texto.center(20)) | |
print('') | |
print(texto.ljust(20, '*')) | |
print(texto.rjust(20, '*')) | |
print(texto.center(20, '*')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment