Python Classroom image

Anil  Bist / Professional / Web Technology
 
To post your Question Join Classroom
 
Question No  (27 of 31)
First 23 I 24 I 25 I 26 I 27 I 28 I 29 I 30 I 31 Last
 
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.
  
 
 
 
image
Anil  Bist

Skills    Python

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,
Description:-

in 2006, i Join a web development company in Bangalore and start work on "Ruby on Rail" this is my first web development framework and we worked in this framework and develop four to five project after some time , I moved to JEE/Sturst frame work,

After some time i decided that now times come and I have to go on in my own way and I started a company name is "Soarlogic&q
Explore

 

  Students (3)

Ask 
image
Vikash
Ask 
image
Anil
Ask 
image
Anil
 
 

Recommended Classes

image shubham rauthan
I am a b.tech graduate in Information Technology and working as a Software Engineer and i wo...
Professional
image shubham rauthan
I am a b.tech graduate in Information Technology and working as a Software Engineer and i wo...
Professional
Rajendra Kumar
I have more then 5 year of Mobile App Development Experience and have worked in Android Native, I...
Professional