From 7183064e9e2a1b19f2ff469a65a34e7094483881 Mon Sep 17 00:00:00 2001 From: Kishore Vancheeshwaran <24776049+kishvanchee@users.noreply.github.com> Date: Fri, 13 Sep 2019 14:50:01 +0530 Subject: [PATCH] Doc: Add example snippet for str.isupper() (GH-14681) --- Doc/library/stdtypes.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 426d768b170..a21c5538cbc 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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)