diff --git a/Doc/builtins/stdtypes.rst b/Doc/builtins/stdtypes.rst index 0cf234217cc5af..99092a1524a80b 100644 --- a/Doc/builtins/stdtypes.rst +++ b/Doc/builtins/stdtypes.rst @@ -2498,6 +2498,23 @@ 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: + + .. doctest:: + + >>> 'banana'.islower() + True + >>> 'BANANA'.islower() + False + >>> 'baNana'.islower() + False + >>> ' '.islower() + False + >>> ''.islower() + False + + See also :meth:`isupper` and :meth:`lower`. + .. method:: str.isnumeric() @@ -2610,7 +2627,10 @@ expression support in the :mod:`re` module). False >>> ' '.isupper() False + >>> ''.isupper() + False + See also :meth:`islower`. .. _meth-str-join: