22nd February 2013 - LPTHW - Learnings

1. EX21 : return value of one function can be taken as an argument for another function.

2.  EX24: Inside the function the variable is temporary, and when you return it then it can be assigned to a variable for later.

3. EX25: Typing help(module) will give us. NAME of the module, DESCRIPTION which is all the comments prior to the start of the program (if any) and FUNCTIONS which are all the functions in the program.

4. EX25: We can put the desciption of the function in between """ and it will print the description of the function when help(module) is issued, within the FUNCTIONS heading. These are called documentation comment.

5.  EX26: If a module is used in a script and it is absent, just import it.

Comments

Popular posts from this blog

Coursera - CS 101 - Completed