Wednesday 11 July 2018

Importing Functions from a Module

Cited from the book "Python How to Program"

To use a function that is defined in a module, a program must import the module, using keyword import. After the module has been imported, the program can invoke functions in that module, using the module’s name, a dot (.) and the function call (i.e., moduleName.functionName()).

No comments:

Post a Comment