Posts

Showing posts from August, 2022

How to write and execute your own module in Python IDLE

Image
  How to write and execute your own module in Python IDLE 1.  Go to , File >> New File 2. Write your module's code, containing the desired variable and functions and save the file 3. To call/execute the function of your module from command window use -     import <module-name>     <module-name>.<function-name(arg)> Thanks for reading! Please put your questions/suggestions in the comment.