mirror of https://github.com/python/cpython
Doc: Add example snippet for str.isupper() (GH-14681)
This commit is contained in:
parent
7cad53e6b0
commit
7183064e9e
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue