Self-paced

Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.

Bootcamp

Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Search from all Lessons


LoginGet Started

Video tutorial

Sign up to see video instructions

← Back to Exercises

Python Modules Tutorial

Work on real-life coding environments with LearnPack.

Get instant help with our AI mentor: Rigobot.

No installation, you go directly to programming

Difficulty

  • beginner

Average duration

6 hrs

Difficulty

  • beginner

Average duration

6 hrs

Video tutorial

Sign up and get access to this free interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • beginner

Average duration

6 hrs

Difficulty

  • beginner

Average duration

6 hrs

Difficulty

  • beginner

Average duration

6 hrs

Difficulty

  • beginner

Average duration

6 hrs

🐍 Learn Python Modules Tutorial

Welcome to the Python Modules Tutorial! πŸŽ‰

In this tutorial, you'll learn everything you need to know about Python modules - from basic imports to creating your own modules. This tutorial is perfect for beginners who want to organize their code better and use Python's awesome built-in features!

What you'll learn

  • What modules are and why they're super useful
  • How to import and use built-in Python modules
  • Creating your own custom modules
  • Best practices for working with modules
  • Real-world examples and practical exercises

Tutorial Structure

This tutorial is divided into major topics (like "01-intro-to-modules") and smaller practice exercises (like "01.1-your-first-import"). Each section builds on what you learned before, so it's best to follow them in order!

Open in Codespaces

You can directly open this tutorial in Codespaces for an easy, cloud-based environment. This allows you to start working on the exercises without needing to set up anything on your local machine.

Local Installation

  1. Make sure you have LearnPack installed, node.js version 14+, and Python version 3.7+, NPM (6 or higher). This is the command to install LearnPack:
1$ npm install @learnpack/learnpack -g
  1. Clone this repository:
1$ git clone https://github.com/4GeeksAcademy/python-modules-tutorial 2$ cd python-modules-tutorial
  1. Start the tutorial:
1$ learnpack start

πŸ’‘ Need Help?

If you get stuck:

  • Read the exercise instructions carefully
  • Check the hints provided in each exercise
  • Look at the solution files after trying on your own
  • Ask for help in our community forum

Happy coding! 🎈

Video tutorial

Sign up and get access to this free interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • beginner

Average duration

6 hrs

Difficulty

  • beginner

Average duration

6 hrs