What is the usage of help() and dir() function in Python? example please ...
Help() and dir()
853
18-Jun-2018
Updated on 19-Jun-2018
Prakash nidhi Verma
19-Jun-2018Help() function:
it's used to display the documentation string and also help in modules, keywords, attributes, and you use a return as a method,attributes.
Example :
dir() function:
The dir() function is used to display the defined symbols and as a arguments for currents local namespace for a local keys.
Ex :