How To Convert Upper Case Letters To Lower Case
I have a script which reads the input and than lists it, however i want it to convert upper case letters to lower case, how can i do that? this is what i got for words in text.rea
Solution 1:
You can find more methods and functions related to Python strings in section 5.6.1. String Methods of the documentation.
w.strip(',.').lower()
Solution 2:
str.lower()
converts all cased characters to lowercase.
Post a Comment for "How To Convert Upper Case Letters To Lower Case"