explaingit

yixiaohan/show-me-the-code

13,707Audience · developerComplexity · 2/5Setup · easy

TLDR

A numbered series of practical Python mini-projects added one per day, covering real tasks like web scraping, database storage, image resizing, and building simple web apps.

Mindmap

mindmap
  root((show-me-the-code))
    What it does
      Daily Python challenges
      Practical mini-projects
      Numbered series
    Topics covered
      Web scraping
      Database storage
      File processing
    Tech Stack
      Python
      MySQL and Redis
      Flask
    Audience
      Python learners
      Self-study coders
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

Practice Python by writing real scripts that generate activation codes, count words, or resize batches of photos

USE CASE 2

Build web scraping and HTML parsing skills through hands-on numbered exercises with real-world targets

USE CASE 3

Learn to connect Python to databases like MySQL and Redis by solving practical storage challenges

Tech stack

PythonMySQLRedisFlask

Getting it running

Difficulty · easy Time to first run · 30min

Written primarily in Chinese, some problems require MySQL, Redis, or a Python web framework to be installed.

In plain English

This is a collection of Python practice exercises, organized as a numbered series of small programs, with one new challenge added each day. The name comes from a quote by Linus Torvalds: "Talk is cheap. Show me the code." The goal is to build practical Python skills through hands-on mini-projects rather than textbook drills. The exercises are practical and grounded in real tasks you might actually want to automate. Early challenges include generating activation codes for a mobile app, storing those codes in a MySQL or Redis database, counting how many times each word appears in a text file, and resizing a folder full of photos to fit a specific screen size. Each problem is numbered sequentially starting from problem 0000, and they gradually cover more territory. As the series progresses, the problems move into web scraping (downloading images from a website), text processing (extracting links and main body text from HTML files), data file handling (reading and writing Excel and XML files), and basic security (hashing passwords before saving them). There are also challenges around building simple web applications using Python web frameworks, such as a guestbook and a to-do list. One problem asks you to use Python to pick up voice input and automatically open a website in a browser. The collection is written primarily in Chinese, though the author notes that most problems can be adapted to other programming languages. Each problem comes with references to external reading materials, and some solutions are available in a companion repository. The author maintains this as an ongoing series. This is a self-study resource for people who already have some Python basics and want to practice on bite-sized, real-world-flavored problems. It is not a structured course with explanations or video lessons. If you have no programming background at all, you would likely find it difficult to follow without additional guidance alongside it.

Copy-paste prompts

Prompt 1
Help me solve show-me-the-code problem 0000: generate activation codes for a mobile app and store them in a MySQL database using Python
Prompt 2
Using the show-me-the-code exercise style, write a Python script that scrapes all images from a webpage and saves them to a local folder
Prompt 3
Write a Python solution for reading an Excel file and converting its contents to XML, following the show-me-the-code practical format
Prompt 4
Help me complete the show-me-the-code voice input challenge: use Python to listen for a spoken command and automatically open a URL in the browser
Open on GitHub → Explain another repo

← yixiaohan on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.