xxxxxxxxxx
text = "Random String"
text = text.upper() #Can also do
text = upper(text)
print(text)
>> "RANDOM STRING"
xxxxxxxxxx
original = Hello, World!
#both of these work
upper = original.upper()
upper = upper(original)
xxxxxxxxxx
my_string = "this is my string"
print(my_string.upper())
# output: "THIS IS MY STRING"
xxxxxxxxxx
#!/usr/bin/python
str = "THIS IS STRING EXAMPLE....WOW!!!";
print str.isupper()
#Prints True
str = "THIS is string example....wow!!!";
print str.isupper()
#prints False
xxxxxxxxxx
# 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())