Aryan PrajapatKnowledge Contributor
What is the usage of help() and dir() function in Python?
What is the usage of help() and dir() function in Python?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
Help() and dir() both functions are accessible from the Python interpreter and used for viewing a consolidated dump of built-in functions.
1.Help() function: The help() function is used to display the documentation string and also facilitates you to see the help related to modules, keywords, attributes, etc.
2.Dir() function: The dir() function is used to display the defined symbols.