Extended import create a new function called importas this


Question: Extended Import. Create a new function called importAs(). This function will import a module or module into your namespace, but with a name you specify, not its original name. For example, calling newname = importAs(mymodule), will import the module mymodule, but the module and all its elements are accessible only as newname or newname.attr. You will discover that this is the exact functionality provided by the new extended import syntax introduced in Python 2.0.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Extended import create a new function called importas this
Reference No:- TGS02580979

Expected delivery within 24 Hours