How would you convert a string into lowercase in python?



How would you convert a string into lowercase in python?..

Answer / Dinesh Rawat

You can use the `lower()` method to convert a string to lowercase. For example, `my_string.lower()` will return the lowercase version of `my_string`. Note that this method does not modify the original string.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Does range start at 0 python?

1 Answers  


Write a program in python to execute the bubble sort algorithm.

1 Answers  


Is python a low level language?

1 Answers  


How will you get all the keys from the dictionary?

1 Answers  


What are metaclasses and what do we use them for?

1 Answers  


Comparison operators != Is not equal to in python?

1 Answers  


What are dict and list comprehensions?

1 Answers  


What applications can you build with python?

1 Answers  


Do sets, dictionaries and tuples also support comprehensions?

1 Answers  


How can I force division to be floating point in python?

1 Answers  


Do python classes need init?

1 Answers  


Is python as powerful as c++?

1 Answers  


Categories