16 mins

Modules

Modules are the tool we use for breaking up our code into multiple files in Python. When you write a .py file, you're making a Python module. You can import your own modules, modules included in the Python standard library, or modules in third-party packages.

Want to watch/read screencasts as they're announced?
Profile picture of Trey

My name is Trey Hunner and I'm a Python trainer. Through Python Morsels I publish new Python screencasts every week and I also send out Python exercises.

If you'd like to get announcements for new Python screencasts, sign up for Python Morsels below. I promise I won't spam you (see my Privacy Policy).

✨ Sign Up For Python Morsels ✨