What is Import in Python
In Python, we can use the import
keyword to use code in one module in another. Imports in Python are important for structuring your code effectively. Imports help in reusing the code effectively.
In this sample of code given below we’ve imported math module into our code and made use of many functions in the math module. Like wise, we can import any modules to our code
Subscribe
Login
Please login to comment
0 Discussion