Convert upper case letters to lower case

0 votes
In a script which reads the input and than lists it, i want it to convert upper case letters to lower case, how can i do that?

for the following code:

 for words in text.readlines():
    sentence = [w.strip(',.') for w in line.split() if w.strip(',.')]
Nov 21, 2018 in Python by ana1504.k
• 6,110 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
You can convert upper case to lower case using the following :

answered Nov 21, 2018 by SDeb
• 9,660 points

Related Questions In Python

0 votes
1 answer
0 votes
1 answer

How to print first character of each word in upper case of a string in Python

You can use split() using space as ...READ MORE

answered Jun 1, 2018 in Python by george
• 200 points
+1 vote
5 answers

convert string to int python

Using list comprehensions: t2 = [map(int, list(l)) for ...READ MORE

answered Oct 18, 2018 in Python by donald
0 votes
1 answer

convert integer to strings

Yes, you can str() function. For example: a=10 str(a) output-'1 ...READ MORE

answered Jun 25, 2018 in Python by code.reaper12
• 3,450 points
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 1,400 points
0 votes
1 answer

How to convert string into epoch time?

you are passing the parsed datetime object to ...READ MORE

answered Sep 21, 2018 in Python by SDeb
• 9,660 points
0 votes
1 answer

How do I convert a Python program to a runnable .exe Windows program?

Understand that every 'freezing' application for Python ...READ MORE

answered Oct 12, 2018 in Python by SDeb
• 9,660 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.