The isupper() method in Python String checks whether the given string has at least one character and if all the case-based characters (letters) are uppercase of the string. If it happens to be in Uppercase, then the Python isupper function is responsible for returning True else it would return False
Here is the syntax for isupper() method:
This method returns true when all the cased characters within the string are uppercase and there exists at least one cased character, otherwise, it would return false.
The example below shows the usage of isupper() method.
str = "THIS IS STRING EXAMPLE....WOW!!!";
str = "THIS is string example....wow!!!";
When the above program is run, it produces the following result:
Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.