Heath J
0
Q:

python is uppercase

original = Hello, World!

#both of these work
upper = original.upper()
upper = upper(original)
4
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.
1
#!/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
0

New to Communities?

Join the community