I just finished this exercise for beginners on creating and importing modules in python.
I was wondering does everything in the module get imported into the computer’s memory?
Will there be implications later on with memory as the code gets longer and the modules imported become more numerous?
Will I need to know memory management to write resource-efficient code because of this?
Your modules are automatically compiled (.pyc files) which are then imported into memory, but you do not have to be affraid of getting out of memory: modules are very small; it is common to have thousands of modules loaded at a time!
You do not need to know memory management as Python does all the work for you.
edit: You can also write a lot of documentation of your code and modules in each module itself (and you should, read about docstrings here) without increasing the size or speed of the modules when loading, because the compiling-step takes out all unnecessary text, comments, etc.