Raymond Hettinger added the comment:
We generally only put the examples where they add something substantive.
Otherwise, it just make the docs verbose and time consuming to read start to
finish.
Adding an example for str.lower() contributes no additional value. Most
published Python
New submission from Kishore :
Is there a reason why many (not all) of the simpler methods lack example
snippets?
Snippets which are present:
1. https://docs.python.org/3/library/stdtypes.html#str.rstrip
2. https://docs.python.org/3/library/stdtypes.html#str.strip
Snippets which are not