Tutorials Point


  Python Basics
  Python Advanced
  Python Useful References
  Python Useful Resources
  Selected Reading

© 2011 TutorialsPoint.COM


  Home     References     Discussion Forums     About TP  

Python String isupper() Method


previous next AddThis Social Bookmark Button


Description:

This method checks whether all the case-based characters (letters) of the string are uppercase

Syntax:

str.isupper()

Parameters:

Here is the detail of parameters:

  • NA

Return Value:

It return true if all cased characters in the string are uppercase and there is at least one cased character, false otherwise

Example:

#!/usr/bin/python


str = "THIS IS STRING EXAMPLE....WOW!!!"; 
print str.isupper();

str = "THIS is string example....wow!!!";
print str.isupper();

This will produce following result:

True
False


previous next Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names