text = "Random String"
text = text.upper() #Can also do
text = upper(text)
print(text)
>> "RANDOM STRING"
>>> funny = 'haha'
>>> print(funny.upper())
HAHA
original = Hello, World!
#both of these work
upper = original.upper()
upper = upper(original)
my_string = "this is my string"
print(my_string.upper())
# output: "THIS IS MY STRING"
string.lower()
string.upper()
strin = "aBc"
print string.upper()
>> "ABC"
print string.lower()
>> "abc"
an_uppercase_check = an_upper.isupper()
# example string
string = "this should be uppercase!"
print(string.upper())
# string with numbers
# all alphabets should be lowercase
string = "Th!s Sh0uLd B3 uPp3rCas3!"
print(string.upper())
str1 = "HeLlO_wOrLd!"
str1.upper()
Output: 'HELLO_WORLD!'
text = "Random String"
text = text.upper()
print(text)
>> "RANDOM STRING"
# String to Uppercase by Matthew Johnson
myStr = "Dna"
print(myStr.upper())
#OUTPUT: "DNA"
# string арга .upper() нь бүх жижиг үсгүүдийг том үсгээр хөрвүүлсэн мөрийг буцаана.
dinosaur = "T-Rex"
print(dinosaur.upper())
# Prints: T-REX
greet = 'Hello Bob'
up1 = greet.upper()
# up2 = upper(greet) - This doesn't work
# print(up2) - Remember this will give you a Syntax Error
print(up1) # Output: HELLO BOB
# Another thing, this will give us only a copy,
# Original string remains the same
print(greet) # Hello Bob
ch=ch.upper()