What is the usage of help() and dir() function in Python?

By ayush goel in 22 Sep 2023 | 04:06 pm
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

What is the usage of help() and dir() function in Python?

22 Sep 2023 | 04:06 pm
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023
  • help() provides interactive help for Python objects. When called with an object or module as an argument, it displays documentation and attributes.
  • dir() returns a list of names in the current local scope or the attributes of an object. It can be used to explore the contents of modules, objects, or namespace
22 Sep 2023 | 06:59 pm
0 Likes

Report

Please describe about the report short and clearly.