About 50 results
Open links in new tab
  1. python - How to change a string into uppercase? - Stack Overflow

    How can I convert a string into uppercase in Python? When I tried to research the problem, I found something about string.ascii_uppercase, but it couldn't solve the problem:

  2. python how to uppercase some characters in string

    You can use the str.translate() method to have Python replace characters by other characters in one step. Use the string.maketrans() function to map lowercase characters to their uppercase targets:

  3. Changing string to uppercase in python - Stack Overflow

    Mar 5, 2019 · In Python str.upper() returns a copy of the string with upper case values, and does not mutate the original string. In fact, strings in Python are immutable anyways.

  4. Converting specific letters to uppercase or lowercase in python

    So to return a copy of a string converted to lowercase or uppercase one obviously uses the lower() or upper(). But how does one go about making a copy of a string with specific letters converted to

  5. python - UTF-8 and upper () - Stack Overflow

    Sep 11, 2010 · I want to transform UTF-8 strings using built-in functions such as upper () and capitalize (). For example:

  6. python - How to match a substring in a string, ignoring case - Stack ...

    Apr 7, 2017 · if line.find('mandy') >= 0: but no success for ignore case. I need to find a set of words in a given text file. I am reading the file line by line. The word on a line can be mandy, Mandy, MANDY, …

  7. 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?

  8. python - Applying uppercase to a column in pandas dataframe - Stack ...

    Jul 7, 2015 · I'm having trouble applying upper case to a column in my DataFrame. dataframe is df. 1/2 ID is the column head that need to apply UPPERCASE. The problem is that the values are made up …

  9. Make Strings In List Uppercase - Python 3 - Stack Overflow

    Aug 2, 2017 · Make Strings In List Uppercase - Python 3 Ask Question Asked 8 years, 8 months ago Modified 8 years, 8 months ago

  10. python 3.x - How can I change upper case to lower and vice versa ...

    Sep 10, 2020 · I am playing around with a small script, just for fun. I'm trying to reverse the items in a string and witch the upper case to lower and lower to upper. The reverse part works, but the case …