Question with Modules and Classes

Started by
1 comment, last by Marzdor 10 years, 8 months ago

So I have been reading Learn Python The Hard Way 3rd edition, and I have recently gotten to Ex 40 which covers Modules, Classes, and Objects. Now to my understanding Modules and Classes do the same thing just with a different way of doing it.

So my question is: Is there a reason to use a Module over a Class?

The reason I ask is Modules seem easier to write and call compared to classes for me.

Advertisement
The difference is, a class can have multiple instances, but there's only one module.

Oh okay thanks

This topic is closed to new replies.

Advertisement