We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe12a7 commit 157897fCopy full SHA for 157897f
Doc/library/stdtypes.rst
@@ -2289,20 +2289,23 @@ expression support in the :mod:`re` module).
2289
Return ``True`` if all cased characters [4]_ in the string are lowercase and
2290
there is at least one cased character, ``False`` otherwise.
2291
2292
- For example::
+ For example:
2293
+
2294
+ .. doctest::
2295
- >>> 'BANANA'.islower()
- False
2296
>>> 'banana'.islower()
2297
True
2298
+ >>> 'BANANA'.islower()
2299
+ False
2300
>>> 'baNana'.islower()
2301
False
2302
>>> ' '.islower()
2303
2304
>>> ''.islower()
2305
2306
- See also :meth:`isupper`.
2307
+ See also :meth:`isupper` and :meth:`lower`.
2308
2309
2310
.. method:: str.isnumeric()
2311
0 commit comments