3 Answers
+ 7
Yes, you could do that. If you put stuff in a separate file, it in effect becomes a module, and you can import the module into other code . You can also put several independent but related classes into a single module file. See this tutorial:
https://www.learnpython.org/en/Modules_and_Packages
+ 1
Thanks a lot! Wasn't sure about if I can use modules as classes :D
0
theoritically will it be slower?