Answers for "to_upper python"

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
6

python uppercase

my_string = "this is my string"
print(my_string.upper())
# output: "THIS IS MY STRING"
Posted by: Guest on January-23-2021
0

python string caps lock

>>> s = 'sdsd'
>>> s.upper()
'SDSD'
Posted by: Guest on May-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language