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();





Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250