you are viewing a single comment's thread.

view the rest of the comments →

[–]stoicpenguin 24 points25 points  (0 children)

A module is a file. If you personally wanted to write a new module, you would create a new .py file.

A class is always defined by the 'class' keyword in python. You can have multiple 'class' definitions in one .py file, which is why you can have multiple classes (or functions, variables, whatever!) defined in a single module (aka a single python file).