Learn to Code with Larz

A free, friendly path from total beginner to building real apps โ€” powered by a toolkit of zero-dependency libraries you can read, and courses that teach by doing.

48learn-to-code tools0dependenciesFreeforever

Your path from zero to builder

Four stages โ€” learn the ideas, practise by doing, go deeper, then build real things.

1
Understand & start

Grasp how computers actually work (CS-101), then learn to code from zero (CODE-101, PY-101) โ€” with the toolkit to see everything as you go.

2
Get good

Level up: cleaner Python (PY-201), debugging & problem-solving (DEBUG-101), version control (GIT-101), and data structures (DS-101).

3
Build & ship

Build a real project end to end and ship it (BUILD-101) โ€” persistence, config, tests, a README, on GitHub. Finishing is the skill that makes you a developer.

4
Build something valuable

Aim higher with the Larz framework: CLI tools, web APIs, a full money-native SaaS โ€” real, valuable products, from what you've learned.

The learn-to-code toolkit

Seven small, readable, zero-dependency libraries that make learning visible and fun.

๐ŸขDraw with codelarzturtle

Move a turtle to draw shapes โ€” the classic first-coding experience, rendered to SVG so it works anywhere.

๐Ÿฅ‹Practise with feedbacklarzkata

Solve exercises and get instant pass/fail with the failing case and a hint โ€” learn by doing.

๐Ÿ”ŽSee how code runslarztrace

Watch every line execute and every variable change, step by step โ€” demystify loops and logic.

๐Ÿ“ŠWatch algorithmslarzalgo

Sorting and searching that record every comparison and swap โ€” finally SEE how they actually work.

๐ŸงชRun code safelylarzsandbox

Run beginner code and survive their mistakes โ€” restricted, timed, output captured. Great for autograding.

โ“Test & rememberlarzquiz

Self-grading quizzes and spaced-repetition flashcards to lock in what you learn.

๐ŸŽฎBuild a gamelarzgame

A text-adventure engine โ€” build a whole little world as your first real project. Motivating and fun.

๐Ÿ”คUnderstand regexlarzregex

Explain any regular expression in plain English and test it against text โ€” finally make regex make sense.

๐Ÿ”ขBinary & hex, clearlylarzbase

Convert between number bases and see the place values โ€” understand how computers actually count.

โŒจ๏ธPractise typinglarztype

A typing-tutor engine โ€” score your WPM and accuracy and generate drills. Fast typing helps you code.

โž—See the mathslarzmath

GCDs, prime factors and long division worked out step by step โ€” understand the how, not just the answer.

๐ŸงฎHow a calculator thinkslarzcalc

Evaluate expressions and see the order of operations โ€” a tiny interpreter that explains why 2 + 3 ร— 4 is 14.

๐Ÿ”ŸSee what bits dolarzbits

AND, OR, XOR and shifts shown lined up in binary โ€” bit manipulation finally made visible.

๐Ÿ“ฆRead JSON clearlylarzjson

Friendly JSON โ€” errors that point at the exact spot, and a plain-English summary of any document's structure.

โœ‚๏ธString algorithmslarzstr

Palindromes, anagrams, edit distance and ciphers โ€” the classic string exercises, correct and ready to study.

๐Ÿ›๏ธRoman numeralslarzroman

Convert to and from Roman numerals and see the breakdown โ€” a fun look at a non-positional number system.

๐Ÿ“ŠSee your datalarzascii

Bar charts, tables, boxes and sparklines in plain text โ€” turn a list of numbers into something you can read.

๐Ÿ”€Boolean logic & truth tableslarzlogic

Evaluate AND/OR/NOT expressions and generate full truth tables โ€” see exactly when logic is true.

โฑ๏ธHuman-friendly timelarztime

Turn seconds into '1 day, 2 hours', parse '1h30m', and say '5 minutes ago' โ€” readable time from plain numbers.

๐Ÿ“Convert units, clearlylarzunit

Length, mass, temperature, data and time โ€” convert between units and see the factor and arithmetic, not just the answer.

๐Ÿ“…Dates from first principleslarzdate

Leap years, weekdays, days between and a printable calendar โ€” the date algorithms computed in the open.

๐Ÿ—‚๏ธRead CSV clearlylarzcsv

Parse CSV to dictionaries, catch ragged rows with a clear error, and summarise the columns โ€” friendly CSV.

๐Ÿ”Config & secretslarzenv

Load .env files into a dict with typed access โ€” do configuration and secrets properly, and keep them out of Git.

๐ŸงฉTemplate enginelarztemplate

Fill placeholders, loop and branch โ€” a tiny real template engine for generating HTML, emails and files cleanly.

๐Ÿ“Markdown to HTMLlarzmarkdown

Convert Markdown to clean HTML โ€” headings, lists, code, links and more. The building block for a blog or docs.

๐ŸงญURL routinglarzrouter

Map paths like /users/<id> to handlers โ€” the heart of a web framework, made readable. Build web apps.

โœ…Validate inputlarzvalidate

Declare a schema and check untrusted data from forms and APIs โ€” clean data out, or clear per-field errors.

๐Ÿ”—URL helperslarzurl

slugify a title, read and write query strings, parse URLs โ€” the little URL jobs every web app needs.

๐ŸงชWrite testslarztest

A tiny readable test framework โ€” fluent expect() assertions and a runner. Learn testing, then rely on it.

๐ŸŽญFake test datalarzfake

Generate realistic names, emails and text โ€” deterministic when seeded, so your tests stay reliable.

๐Ÿ”ฌSee what changedlarzdiff

Human-readable diffs of two values โ€” dicts, lists, strings โ€” for test failures and debugging.

โฒ๏ธMeasure speedlarzbench

Micro-benchmark and compare approaches with real stats โ€” answer 'which is faster?' by measuring.

๐Ÿ“‹Structured logginglarzlog

Readable text or JSON logs with levels and context โ€” your eyes into an app running in production.

๐Ÿ”Retry & resiliencelarzretry

Retry flaky calls with backoff, and a circuit breaker that stops hammering a service that's down.

๐ŸšฆRate limitinglarzratelimit

A token bucket to protect your app and APIs from traffic bursts โ€” per user or IP.

๐Ÿ—„๏ธPersist your datalarzstore

A tiny document store that saves records to a JSON file โ€” the sweet spot between a file and a database.

๐Ÿ”ŽQuery your datalarzquery

Filter, sort, select and aggregate a list of dicts โ€” ask database-style questions of your records.

๐Ÿ“„Paginate resultslarzpaginate

Split a long list into pages with all the metadata โ€” 'showing 21-30 of 57', next/prev, page counts.

๐Ÿ”€State machineslarzfsm

Model things that move between states โ€” an order, a document, a game โ€” with declared, legal-only transitions.

๐Ÿ“ฃEvent emitterlarzevents

Let parts of your app talk without being wired together โ€” announce an event, and whoever cares listens.

โ†ฉ๏ธUndo / redolarzcommand

The command pattern โ€” wrap actions so they can undo themselves, and get an undo/redo history for free.

๐Ÿ”ขFormat numberslarznum

commas, ordinals, file sizes and 1.2k-style abbreviations โ€” the number formatting that makes software feel finished.

๐Ÿ” Convert naming styleslarzcase

snake_case, camelCase, kebab-case, PascalCase โ€” convert between naming conventions, camelCase boundaries and all.

โœ๏ธText helperslarztext

truncate, wrap, pluralize, reading time, initials โ€” the little everyday text jobs, done cleanly.

๐Ÿ’ธTry a live languagelarzscript

Larzscript โ€” a money-native language where payments are keywords. Edit & run it live in your browser.

โ›ฐ๏ธPriority queueslarzheap

A binary heap โ€” always get the highest-priority item next. Task queues, schedulers, top-N, Dijkstra.

๐ŸŒณBinary search treeslarztree

Keep data sorted and searchable โ€” insert, search, min/max, and all four traversals.

๐Ÿ”กAutocomplete (tries)larztrie

A prefix tree โ€” list every word starting with a prefix. The structure behind autocomplete.

Courses

Free, in-depth courses in Larz Academy โ€” from your first line of code to shipping a SaaS.

CS-101How Computers Work

What's really going on inside the machine โ€” bits to apps. No prerequisites.

CODE-101Learn to Code (from Zero)

The friendly starting point for absolute beginners.

PY-101Python Fundamentals

Hands-on Python basics โ€” variables, loops, functions, collections.

PY-201Intermediate Python

Functions, files, errors, classes and clean, Pythonic code.

DEBUG-101Debugging & Problem-Solving

Read errors, isolate bugs, and think like a problem-solver.

GIT-101Version Control with Git

Track your work, branch fearlessly, and collaborate on GitHub.

DS-101Data Structures & Algorithms

Store data the right way and reason about speed with Big-O.

BUILD-101Build Your First Real Project

Take a project from idea to shipped โ€” the leap that makes you a developer.

LARZ-601Build a SaaS with Larz

Build and ship a real money-native app, end to end.

Why learn this way?

Because you learn by building and seeing, not just watching. Every tool is pure Python you can read end to end, everything is free, and it leads somewhere real โ€” to building your own apps with the Larz framework. No black boxes, no paywalls, no dependency soup.

Begin with Learn to Code →