
James G. answered 05/16/18
Tutor
4.9
(1,012)
Tutor
The dir() function brings back your session state showing values know to your python session. Passing an argument lets you drill into those values in more detail. Can be very useful for identifying the vocabulary of python. Can be thought of as an interactive table of contents.
The help() function displays the function header of functions along with any help text that has been defined. This is a little more like reading an individual definition in an dictionary.