Logic101

Logic101

Logic101 is a problem-set-driven course that teaches computational thinking through Python. Every problem connects code to the real world — to language, culture, history, and the systems humans have built for thousands of years.

This is not a syntax course. You will not memorize rules. You will learn to think.

Start

pip install l101

Install the CLI tool.

l101 login

Authenticate with GitHub (one-time).

Or open a Codespace for zero-setup development:

Open Codespace

Problem Set 0

Three problems. No loops, no dictionaries. Just input, output, conditions, and thinking.

#ProblemConceptsStory
1 NAMASTE input, print, f-strings A 5,000-year-old Sanskrit greeting that became a global phenomenon during COVID-19.
2 NAMASTE+ if/elif/else, string methods India has 22 official languages. Real software must handle every variation.
3 PARITY modulo, .count(), conditions In 1962, a missing hyphen destroyed a $18.5M spacecraft. One bit can prevent catastrophe.

What you will learn

String methods like .lower(), .strip(), and .count() are not taught in lecture. You will discover them through the problem sets — the "Useful String Methods" tables in each problem page list the methods you need. This is by design. Syntax is best learned by doing.

Commands

CommandWhat it does
l101 pull pset0Download starter code
l101 test namaste.pyRun visible tests locally
l101 submit pset0Submit for grading (max 5 attempts)
l101 statusCheck submission history and attempts

Grading

Each hidden test is worth 1 point. Your best score across all submissions is kept. There is no penalty for resubmitting. Max score for PSET 0: 10/10.