diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index d4540e0b819871..a180f45a0654ce 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2289,6 +2289,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() @@ -2385,7 +2402,10 @@ expression support in the :mod:`re` module). False >>> ' '.isupper() False + >>> ''.isupper() + False + See also :meth:`islower`. .. _meth-str-join: