About 7,450,000 results
Open links in new tab
  1. How do I convert only specific parts of a string to uppercase in Python ...

    So I am writing a function that takes in a string input (ex: abcdefg) and a shorter portion of that input (ex: cde) and searches for it within the first longer string. How do I make it so that only …

  2. Python String upper() Method - W3Schools

    The upper() method returns a string where all characters are in upper case. Symbols and Numbers are ignored. string.upper () No parameters. String Methods. Track your progress - …

  3. python - Making only specific parts of a string uppercase - Stack Overflow

    Jul 10, 2015 · Store it in a variable called native_link_format Then just call .upper() on the whole string instead of trying to pick certain parts to call .upper(). Once the string was converted to …

  4. python - How to change a string into uppercase? - Stack Overflow

    To get upper case version of a string you can use str.upper: s = 'sdsd' s.upper() #=> 'SDSD' On the other hand string.ascii_uppercase is a string containing all ASCII letters in upper case: …

  5. Python String upper() Method - GeeksforGeeks

    Apr 26, 2025 · upper() method in Python is a built-in string method that converts all lowercase letters in a string to uppercase. This method is simple to use and does not modify the original …

  6. Python – Uppercase Selective Substrings in String

    Apr 25, 2023 · Use string slicing and concatenation to replace the current occurrence of the substring in the input string with its uppercase version.

  7. isupper (), islower (), lower (), upper () in Python and their ...

    May 3, 2025 · The isupper method checks whether all the characters in a string are uppercase. For example: Input: string = 'GEEKSFORGEEKS' Output: True. Syntax of isupper() …

  8. 7 Ways of Making Characters Uppercase Using Python

    Jul 4, 2020 · One such library in python is upper(), which converts strings in python to uppercase. It means if we have a string in lower letters (For example – ” hello, how are you”), we can use …

  9. How to Convert String to Uppercase in Python? - Python Guides

    Apr 7, 2025 · While Python offers built-in string methods like .upper() understanding how to manually convert lowercase letters to uppercase can deepen your grasp of character …

  10. Python Convert String to Uppercase - Examples

    To convert String to uppercase, you can use upper () method on the String. In this tutorial, we will learn how to change the case of given string to uppercase. The syntax to use upper () method …

Refresh