About 50 results
Open links in new tab
  1. How do I lowercase a string in Python? - Stack Overflow

    Mar 7, 2023 · Is there a way to convert a string to lowercase? "Kilometers" → "kilometers" See How to change a string into uppercase? for the opposite.

  2. How to make everything in a string lowercase - Stack Overflow

    Nov 1, 2017 · 5 I am trying to write a function that will print a poem reading the words backwards and make all the characters lower case. I have looked around and found that .lower () should make …

  3. python - Convert a list with strings all to lowercase or uppercase ...

    I have a Python list variable that contains strings. Is there a function that can convert all the strings in one pass to lowercase and vice versa, uppercase?

  4. string.lower in Python 3 - Stack Overflow

    May 20, 2013 · I had a working python script, but something must have changed in python 3. For example if I wanted to convert argument 1 to lowercase: import string print (string.lower (sys.argv …

  5. How do I make part of a string lowercase in python?

    Oct 21, 2014 · In this case, I think split(' ') actually makes more sense—because then ' '.join will get back exactly his original string, instead of his original string with all runs of whitespace converted to a …

  6. How do I convert this input to lowercase (Python 3)

    Mar 16, 2022 · How would I convert the input to lowercase so that the input isn't case sensitive? # Handle user inputs # Function to return a valid input def GetInput(): print("1)

  7. Remove whitespace and make all lowercase in a string for python

    Apr 27, 2011 · How do I remove all whitespace from a string and make all characters lowercase in python? Also, can I add this operation to the string prototype like I could in javascript?

  8. How to make a variable in a string lowercase? - Stack Overflow

    Sep 16, 2023 · 0 I have seen this Lab assignment on here already and I chose a different route to get the same result. However I keep getting dinged on the case of the variable. The input is inserted in …

  9. Dictionary to lowercase in Python - Stack Overflow

    Feb 11, 2021 · I wish to do this but for a dictionary: "My string".lower() Is there a built in function or should I use a loop?

  10. python - How to downcase the first character of a string ... - Stack ...

    Oct 1, 2010 · There is a function to capitalize a string, I would like to be able to change the first character of a string to be sure it will be lowercase. How can I do that in Python?