Commit 7183064e authored by Kishore Vancheeshwaran's avatar Kishore Vancheeshwaran Committed by Stéphane Wirtel

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

parent 7cad53e6
......@@ -1782,6 +1782,16 @@ expression support in the :mod:`re` module).
Return true if all cased characters [4]_ in the string are uppercase and
there is at least one cased character, false otherwise.
>>> 'BANANA'.isupper()
True
>>> 'banana'.isupper()
False
>>> 'baNana'.isupper()
False
>>> ' '.isupper()
False
.. method:: str.join(iterable)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment