How to create and import Python modules

In this short video tutorial, we explain Python modules, show how to create and import them into another file. We also explain the conditional statement, if __name__ == ‘__main__’: that is ubiquitous in Python code. We shall tell you why you should have it in your code.

C. O. Daniel

C. O. Daniel holds degrees in Computer Science and certifications from CompTIA and Microsoft. His areas of interest include computer networking, cybersecurity and programming.

Leave a Reply