How to get help options for data types in python

using below for the loop to see all the help options for dictionaries

for me in dir(dict): if not me.startswith("__"): help(dict.me)

error is AttributeError: type object 'dict' does not have me attribute

After resolving this issue, I can see all the data type help options

+8
python
source share
2 answers

turn from a single answer and your question:

 for me in dir(dict): if not me.startswith('__'): help(getattr(dict, me)) 
+7
source share
 for me in dir(dict): if not me.startswith('__'): help(me) 
+4
source share

All Articles