str.lower()
original = Hello, World! #both of these work upper = original.upper() upper = upper(original)
string.isupper() Parameters: isupper() does not take any parameters Returns : 1.True- If all characters in the string are uppercase. 2.False- If the string contains 1 or more non-uppercase characters.
#!/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