Question:-
difference between help() and dir() ?
Answer:-
- help() – it will display the documentation string. It is used to see the help related to modules, keywords, attributes, etc.
To view the help related to string datatype, just execute a statement help(str) – it will display the documentation for ‘str, module. â—¦ Eg: >>>help(str) or >>>help() – it will open the prompt for help as help> - to view the help for a module, help> module module name Inorder to view the documentation of ‘str’ at the help>, type help>modules str
- to view the help for a keyword, topics, you just need to type, help> “keywords python- keyword” and “topics list”
- dir() – will display the defined symbols. Eg: >>>dir(str) – will only display the defined symbols.
- help() – it will display the documentation string. It is used to see the help related to modules, keywords, attributes, etc.
To view the help related to string datatype, just execute a statement help(str) – it will display the documentation for ‘str, module. â—¦ Eg: >>>help(str) or >>>help() – it will open the prompt for help as help> - to view the help for a module, help> module module name Inorder to view the documentation of ‘str’ at the help>, type help>modules str
- to view the help for a keyword, topics, you just need to type, help> “keywords python- keyword” and “topics list”
- dir() – will display the defined symbols. Eg: >>>dir(str) – will only display the defined symbols.
Anil Bist
Skills Python
Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,Location :-Dehradun,Dehradun,Uttarakhand,
Description:-
I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore
Students (3)
Ask
Vikash
Ask
Anil
Ask
Anil
Recommended Classes
Anil Bist
I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore an...
Professional
shweta Pandey
Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional
shweta Pandey
Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional