Answers for "to upper python string"

30

python to uppercase

text = "Random String"
text = text.upper() #Can also do 
text = upper(text)
print(text)

>> "RANDOM STRING"
Posted by: Guest on September-16-2020
0

python string upper method

str1 = "HeLlO_wOrLd!"
str1.upper()
Output: 'HELLO_WORLD!'
Posted by: Guest on January-13-2022

Python Answers by Framework

Browse Popular Code Answers by Language