Modular Programming is coding method that separates the program into independent, interchangeable parts
A Python program is constructed from code blocks
A block is a piece of Python program text that is executed as a unit
The following are blocks:
class definition.Names refer to objects
Names are introduced by name binding operations
The following constructs bind names:
import Systemimport SystemPython code in one module gains access to the code in another module by the process of importing it
The import statement is the most common way of invoking the import machinery
import math
The import statement (with no from clause) is executed in 2 steps:
import statement occurs.When the statement contains multiple clauses (separated by commas) the two steps are carried out separately for each clause:
import math, os