Doc: Add example snippet for str.isupper() (GH-14681)

This commit is contained in:
Kishore Vancheeshwaran 2019-09-13 14:50:01 +05:30 committed by Stéphane Wirtel
parent 7cad53e6b0
commit 7183064e9e
1 changed files with 10 additions and 0 deletions

View File

@ -1782,6 +1782,16 @@ expression support in the :mod:`re` module).
Return true if all cased characters [4]_ in the string are uppercase and Return true if all cased characters [4]_ in the string are uppercase and
there is at least one cased character, false otherwise. there is at least one cased character, false otherwise.
>>> 'BANANA'.isupper()
True
>>> 'banana'.isupper()
False
>>> 'baNana'.isupper()
False
>>> ' '.isupper()
False
.. method:: str.join(iterable) .. method:: str.join(iterable)