About 7,980,000 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. 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.

  3. Funcion lower y upper case en python - Stack Overflow en español

    Soy principiante en python y tal vez esta pregunta les parezca sencillas a algunos pero bueno ahí va quería preguntar como podría yo pedir texto por teclado y ese texto que se guarde en …

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

    Aug 2, 2017 · It's great that you're learning Python! In your example, you are trying to uppercase a list. If you think about it, that simply can't work. You have to uppercase the elements of that …

  5. python - How do you round UP a number? - Stack Overflow

    May 5, 2017 · How does one round a number UP in Python? I tried round (number) but it rounds the number down. Here is an example: round (2.3) = 2.0 and not 3, as I would like. Then I tried …

  6. python - Convert whole dataframe from lower case to upper case …

    My goal is to transform every single string inside of the dataframe to upper case so that it looks like this: Notice: all data types are objects and must not be changed; the output must contain …

  7. python capitalize first letter only - Stack Overflow

    Sep 13, 2012 · I am aware .capitalize() capitalizes the first letter of a string but what if the first character is a integer? this 1bob 5sandy to this 1Bob 5Sandy

  8. python - When using the upper method of strings, why do I have …

    Sep 14, 2021 · This is the code which makes upper work: a = 'Hello World' print(a.upper()) And this is the code which I think is correct but doesn't work: a = 'Hello World' print(a.upper) I'm …

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

  10. python - How do I do a case-insensitive string comparison

    How can I compare strings in a case insensitive way in Python? I would like to encapsulate comparison of a regular strings to a repository string, using simple and Pythonic code.