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.
Your path from zero to builder
Four stages โ learn the ideas, practise by doing, go deeper, then build real things.
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.
Level up: cleaner Python (PY-201), debugging & problem-solving (DEBUG-101), version control (GIT-101), and data structures (DS-101).
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.
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.
Move a turtle to draw shapes โ the classic first-coding experience, rendered to SVG so it works anywhere.
๐ฅPractise with feedbacklarzkataSolve exercises and get instant pass/fail with the failing case and a hint โ learn by doing.
๐See how code runslarztraceWatch every line execute and every variable change, step by step โ demystify loops and logic.
๐Watch algorithmslarzalgoSorting and searching that record every comparison and swap โ finally SEE how they actually work.
๐งชRun code safelylarzsandboxRun beginner code and survive their mistakes โ restricted, timed, output captured. Great for autograding.
โTest & rememberlarzquizSelf-grading quizzes and spaced-repetition flashcards to lock in what you learn.
๐ฎBuild a gamelarzgameA text-adventure engine โ build a whole little world as your first real project. Motivating and fun.
๐คUnderstand regexlarzregexExplain any regular expression in plain English and test it against text โ finally make regex make sense.
๐ขBinary & hex, clearlylarzbaseConvert between number bases and see the place values โ understand how computers actually count.
โจ๏ธPractise typinglarztypeA typing-tutor engine โ score your WPM and accuracy and generate drills. Fast typing helps you code.
โSee the mathslarzmathGCDs, prime factors and long division worked out step by step โ understand the how, not just the answer.
๐งฎHow a calculator thinkslarzcalcEvaluate expressions and see the order of operations โ a tiny interpreter that explains why 2 + 3 ร 4 is 14.
๐See what bits dolarzbitsAND, OR, XOR and shifts shown lined up in binary โ bit manipulation finally made visible.
๐ฆRead JSON clearlylarzjsonFriendly JSON โ errors that point at the exact spot, and a plain-English summary of any document's structure.
โ๏ธString algorithmslarzstrPalindromes, anagrams, edit distance and ciphers โ the classic string exercises, correct and ready to study.
๐๏ธRoman numeralslarzromanConvert to and from Roman numerals and see the breakdown โ a fun look at a non-positional number system.
๐See your datalarzasciiBar charts, tables, boxes and sparklines in plain text โ turn a list of numbers into something you can read.
๐Boolean logic & truth tableslarzlogicEvaluate AND/OR/NOT expressions and generate full truth tables โ see exactly when logic is true.
โฑ๏ธHuman-friendly timelarztimeTurn seconds into '1 day, 2 hours', parse '1h30m', and say '5 minutes ago' โ readable time from plain numbers.
๐Convert units, clearlylarzunitLength, mass, temperature, data and time โ convert between units and see the factor and arithmetic, not just the answer.
๐ Dates from first principleslarzdateLeap years, weekdays, days between and a printable calendar โ the date algorithms computed in the open.
๐๏ธRead CSV clearlylarzcsvParse CSV to dictionaries, catch ragged rows with a clear error, and summarise the columns โ friendly CSV.
๐Config & secretslarzenvLoad .env files into a dict with typed access โ do configuration and secrets properly, and keep them out of Git.
๐งฉTemplate enginelarztemplateFill placeholders, loop and branch โ a tiny real template engine for generating HTML, emails and files cleanly.
๐Markdown to HTMLlarzmarkdownConvert Markdown to clean HTML โ headings, lists, code, links and more. The building block for a blog or docs.
๐งญURL routinglarzrouterMap paths like /users/<id> to handlers โ the heart of a web framework, made readable. Build web apps.
โ Validate inputlarzvalidateDeclare a schema and check untrusted data from forms and APIs โ clean data out, or clear per-field errors.
๐URL helperslarzurlslugify a title, read and write query strings, parse URLs โ the little URL jobs every web app needs.
๐งชWrite testslarztestA tiny readable test framework โ fluent expect() assertions and a runner. Learn testing, then rely on it.
๐ญFake test datalarzfakeGenerate realistic names, emails and text โ deterministic when seeded, so your tests stay reliable.
๐ฌSee what changedlarzdiffHuman-readable diffs of two values โ dicts, lists, strings โ for test failures and debugging.
โฒ๏ธMeasure speedlarzbenchMicro-benchmark and compare approaches with real stats โ answer 'which is faster?' by measuring.
๐Structured logginglarzlogReadable text or JSON logs with levels and context โ your eyes into an app running in production.
๐Retry & resiliencelarzretryRetry flaky calls with backoff, and a circuit breaker that stops hammering a service that's down.
๐ฆRate limitinglarzratelimitA token bucket to protect your app and APIs from traffic bursts โ per user or IP.
๐๏ธPersist your datalarzstoreA tiny document store that saves records to a JSON file โ the sweet spot between a file and a database.
๐Query your datalarzqueryFilter, sort, select and aggregate a list of dicts โ ask database-style questions of your records.
๐Paginate resultslarzpaginateSplit a long list into pages with all the metadata โ 'showing 21-30 of 57', next/prev, page counts.
๐State machineslarzfsmModel things that move between states โ an order, a document, a game โ with declared, legal-only transitions.
๐ฃEvent emitterlarzeventsLet parts of your app talk without being wired together โ announce an event, and whoever cares listens.
โฉ๏ธUndo / redolarzcommandThe command pattern โ wrap actions so they can undo themselves, and get an undo/redo history for free.
๐ขFormat numberslarznumcommas, ordinals, file sizes and 1.2k-style abbreviations โ the number formatting that makes software feel finished.
๐ Convert naming styleslarzcasesnake_case, camelCase, kebab-case, PascalCase โ convert between naming conventions, camelCase boundaries and all.
โ๏ธText helperslarztexttruncate, wrap, pluralize, reading time, initials โ the little everyday text jobs, done cleanly.
๐ธTry a live languagelarzscriptLarzscript โ a money-native language where payments are keywords. Edit & run it live in your browser.
โฐ๏ธPriority queueslarzheapA binary heap โ always get the highest-priority item next. Task queues, schedulers, top-N, Dijkstra.
๐ณBinary search treeslarztreeKeep data sorted and searchable โ insert, search, min/max, and all four traversals.
๐กAutocomplete (tries)larztrieA 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.
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 FundamentalsHands-on Python basics โ variables, loops, functions, collections.
PY-201Intermediate PythonFunctions, files, errors, classes and clean, Pythonic code.
DEBUG-101Debugging & Problem-SolvingRead errors, isolate bugs, and think like a problem-solver.
GIT-101Version Control with GitTrack your work, branch fearlessly, and collaborate on GitHub.
DS-101Data Structures & AlgorithmsStore data the right way and reason about speed with Big-O.
BUILD-101Build Your First Real ProjectTake a project from idea to shipped โ the leap that makes you a developer.
LARZ-601Build a SaaS with LarzBuild 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 →