Create and import custom module in python:
- If create a custom module to import this module in another module, it should have function definition only.
- File inclusion must be import keyword with the name of the created custom module.
Save the program as a calculation.c
Created another program Example.py for file inclusion:
Output:
No comments:
Post a Comment