Python String isupper() method
Python String isupper() method returns whether all characters in a string are uppercase or not.
Python String isupper() method Syntax
Returns: True if all the letters in the string are in the upper case and False if even one of them is in the lower case.
Python String isupper() method Examples
Example 1: Demonstrating the working of isupper()
Is GEEKSFORGEEKS full uppercase ? : True Is Geeksforgeeks full uppercase ? : False
Example 2: Practical Application
Python String isupper() function can be used in many ways and has many practical applications. One such application for checking the upper cases, checking Abbreviations (usually upper case), checking for correctness of sentence which requires all upper cases. Demonstrated below is a small example showing the application of isupper() method.
Number of abbreviations in this sentence is : 3