Q. Create module tmpConvenion.py as given in Fig 4.2 in the chapter.


If you invoke the module with two different types of import statement, how would the function call statement for imported module’s functions be affected?


Answer =

If we use ‘import’ command then we will able to call all function which is present in file ‘tmpConvenion.py

For example:

import tmpConvenion

If we use ‘from import’ command then we able to call selected function

For example:-

from tmpConvenion import to_centigrade()

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post