isupper()

my_str.isupper()
Returns True if all chars in a string are upper case letters , otherwise rturns False
my_str='WELCOME TO PYTHON'
print(my_str.isupper())      # Output is True 

my_str='Welcome to Python'
print(my_str.isupper())      # Output is False

my_str='Welcome To Python'
print(my_str.isupper())      # Output is False

my_str='WELCOME 100'
print(my_str.isupper())      # Output is True
All String methods



plus2net.com



Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer