Computer Science
How do you reuse the functions defined in a module in your program?
Python Modules
2 Likes
Answer
To reuse the functions defined in a module in our program, we can import the module into our program using the import statement. Once imported, we can call the functions from the module using the module name followed by a dot (.) and the function name.
Answered By
1 Like
Related Questions
Write a module to input total number of days and find the total number of months and remaining days and display it in another program.
What is a module? What is the file extension of a Python module?
In how many ways can you import objects from a module?
How are the following two statements different from each other?
(a) import math
(b) from math import*