As I mentioned before those crash courses are not for ultimate beginners. If it is your first time to code I don't support reading this Topic. If you are a programming Fan, you would Like it.
It is a crash course of a course on Udemy. In this topic, we will discuss:
Advantages of Modules: 1) simple: It doesn't focus on the whole problem but a specific part of it. This makes development easier and less error-prone.
2) Maintainability: It focuses on a specific domain and minimizes the interdependency of those modules.
3) Reusability 4) Scoping: For each its namespace.
Functions, modules, and packages are all constructs in Python that promote code modularization.
There are 3 types of Python modules ( Written in Python itself, Written in C and loaded at runtime, built-in modules)
We focus now on The built-in modules:
This is how to call a module.
1. import (module name).
2. s and foo are in the module (private symbols) They are like functions.
The built-in function dir() returns a list of defined names in a namespace. Without arguments, it produces an alphabetically sorted list of names in the current local symbol table
(abbreviation).(Private symbol) OR from (module name) import*
It is a crash course of a course on Udemy. In this topic, we will discuss:
1. Modules:
Modular Programming means breaking a large programming task into separate, smaller modules.Advantages of Modules: 1) simple: It doesn't focus on the whole problem but a specific part of it. This makes development easier and less error-prone.
2) Maintainability: It focuses on a specific domain and minimizes the interdependency of those modules.
3) Reusability 4) Scoping: For each its namespace.
Functions, modules, and packages are all constructs in Python that promote code modularization.
There are 3 types of Python modules ( Written in Python itself, Written in C and loaded at runtime, built-in modules)
We focus now on The built-in modules:
This is how to call a module.
1. import (module name).
2. s and foo are in the module (private symbols) They are like functions.
The built-in function dir() returns a list of defined names in a namespace. Without arguments, it produces an alphabetically sorted list of names in the current local symbol table
import mod
>>> dir(mod)
Different ways to call a module:
import (module name) as (abbreviation)(abbreviation).(Private symbol) OR from (module name) import*
Comments
Post a Comment