Python - Display text in lowercase or uppercase

April 2018



Several solutions exist:
Display text in lowercase
print map (chr, range (97, 123))

Display text in uppercase
print map (chr, range (65, 91))

Display text in lowercase and uppercase letters:
from string import ascii_letters
print ascii_letters

Another alternative:
import string
print string.ascii_lowercase
print string.ascii_uppercase
Published by jak58. Latest update on May 26, 2013 at 12:03 PM by jak58.
This document, titled "Python - Display text in lowercase or uppercase," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).
C++: A simple program to find the total of five values
Open a URL in C++