Answers for "how to convert a single character to uppercase in python"

1

python split string capital letters

>>> import re
>>> re.findall('[A-Z][^A-Z]*', 'TheLongAndWindingRoad')
['The', 'Long', 'And', 'Winding', 'Road']
>>> re.findall('[A-Z][^A-Z]*', 'ABC')
['A', 'B', 'C']
Posted by: Guest on December-13-2021
9

how do you change a string to only uppercase in python

original = Hello, World!

#both of these work
upper = original.upper()
upper = upper(original)
Posted by: Guest on March-12-2020

Code answers related to "how to convert a single character to uppercase in python"

Python Answers by Framework

Browse Popular Code Answers by Language