Articles → Python → Create Our Own Module In Python And Consume It

Create Our Own Module In Python And Consume It






What Is A Module?





Creating A Module




def PrintHelloWorldMessage():
  print("Hello world")
  return





Calling A Module




import MessageModule
MessageModule.PrintHelloWorldMessage();



Output


Picture showing the output of calling your own custom module in python



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, April 18, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250