Question: what is the difference between class and module in python?
Answer: A python module is nothing but a package to encapsulate reusable code. ... Classes, in the other hand, can be defined in your main application code or inside modules imported by your application. Classes are the code of Object Oriented Programming and can contain properties and methods.