explaingit

jerry-git/learn-python3

6,795HTMLAudience · generalComplexity · 1/5Setup · easy

TLDR

A structured collection of interactive Jupyter notebooks for learning Python 3 from scratch, covering 19 beginner topics through intermediate best practices, with separate exercise notebooks to practice each concept.

Mindmap

mindmap
  root((learn-python3))
    Beginner Topics
      Strings and numbers
      Loops and functions
      Classes and modules
    Intermediate Topics
      Comprehensions
      Decorators
      Best practices
    How to Use
      Jupyter locally
      Binder online
      Static HTML
    Audience
      Self-learners
      Instructors
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Work through a beginner Python course covering strings, loops, functions, and classes at your own pace

USE CASE 2

Practice idiomatic Python patterns like comprehensions and decorators with ready-made exercise notebooks

USE CASE 3

Run the entire course in a browser with one click via Binder without installing anything

USE CASE 4

Use the materials to teach a Python course with structured reading notebooks and separate exercise files

Tech stack

PythonJupyter

Getting it running

Difficulty · easy Time to first run · 5min

One-click Binder link requires no local setup at all.

No license information found in the explanation.

In plain English

This repository is a structured collection of teaching materials for learning Python 3, organized as interactive Jupyter notebooks. A Jupyter notebook is a document that mixes written explanations, runnable code cells, and output all in one page, so you can read about a concept and immediately try it out without switching between tools. The content is divided into two levels. The beginner section covers 19 topics in a deliberate order: strings, numbers, conditional logic, lists, dictionaries, loops, functions, testing with pytest, file input and output, classes, exceptions, modules, debugging, parts of the standard library, virtual environments, and project structure. Each topic comes with a reading notebook and a separate exercise notebook where you write code to practice what you just learned. Two recap exercises appear along the way to check understanding across multiple topics at once. The intermediate section goes further and includes two broad areas. The first is idiomatic Python, covering the style and patterns that experienced Python developers use: comprehensions, generators, decorators, context managers, and features from the standard library that beginners often miss. The second area covers best practices around writing production-quality code: writing clean code, logging, testing approaches, and continuous integration. You can run the notebooks locally by installing Python 3.10 or newer, installing Jupyter with pip, cloning the repository, and running the jupyter notebook command in the project folder. This opens a browser session where you navigate to any notebook and start working through it. If you do not want to set anything up, the repository also links to Binder, a free online service that opens the entire project in a cloud-hosted Jupyter session with one click. Static HTML versions of each notebook are linked from the README for reading without running any code. The materials are designed for both self-learners working through them independently and instructors teaching a course. Contributing guidelines are included for anyone who wants to add or improve content.

Copy-paste prompts

Prompt 1
I am learning Python 3 using the jerry-git/learn-python3 notebooks. I just finished the lists notebook and I am stuck on the exercise, walk me through solving it step by step.
Prompt 2
Show me a Python 3 generator example based on the style used in the learn-python3 idiomatic section.
Prompt 3
I am on the decorators notebook in learn-python3. Explain how decorators work and give me a practical example I can run in a Jupyter cell.
Prompt 4
Using the learn-python3 structure, create a mini exercise notebook on dictionary comprehensions with three progressively harder tasks.
Prompt 5
I finished the beginner section of learn-python3. What intermediate topics should I focus on next to write more Pythonic code?
Open on GitHub → Explain another repo

← jerry-git on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.