By CountingPips.com
A quick and simple way to change all text into lowercase or uppercase letters using python.
input:
text = “New York City”
lowertext = text.lower()
print (lowertext)
Free Reports:
output: new york city
or you can simply apply .lower() to ‘text’
text.lower()
output: new york city
Uppercase is the same process.
input:
text.upper()
output: NEW YORK CITY