Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[Doc] Added snippet code to str.islower method
  • Loading branch information
adorilson committed Feb 15, 2026
commit bbe12a7d4cb8d293a8495f7b95cef689d186f2b6
18 changes: 17 additions & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,20 @@ expression support in the :mod:`re` module).
Return ``True`` if all cased characters [4]_ in the string are lowercase and
there is at least one cased character, ``False`` otherwise.

For example::

>>> 'BANANA'.islower()
False
>>> 'banana'.islower()
True
>>> 'baNana'.islower()
False
>>> ' '.islower()
False
>>> ''.islower()
False

See also :meth:`isupper`.

.. method:: str.isnumeric()

Expand Down Expand Up @@ -2385,8 +2399,10 @@ expression support in the :mod:`re` module).
False
>>> ' '.isupper()
False
>>> ''.isupper()
False


See also :meth:`islower`.

.. _meth-str-join:

Expand Down