Modules are collections of methods and constants. Practically, they’re like a toolbox full of neat tools and supplies. If you wanted to build a house, you might use one set of tools and supplies, whereas building electronics may require another set of tools and supplies. Modules are a way to organize your tools and supplies into useful receptacles.
Classes are useful to help organize objects with similar attributes and methods. Instead of defining multiple objects with similar attributes, we can instead define a single class and create instances of that class.