1. while loop: Works till the time condition meet.
2. for loop: works for number of iterations.
3. function: Pre-fabricated code.
"def xyz(x): "
4. Class: It's a template of one or multi-functions features and variables.
Classes can be inherit from super-class to child-class.
First make class than make its objects to use it's resources.
5. Constructor: Special method in a class. As soon user create object.
It executed it self, no need to call it.
6. Import: User can import python modules, by using import cmd.
import xyz > xyz.abc()
Also, any edit in the import module source file, user needs to,
reload(xyz) cmd to update the import module in the source code.
7. dir(math) > help(math): This is the way to show help in details.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.