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
Install the CLI tool.
Authenticate with GitHub (one-time).
Or open a Codespace for zero-setup development:
Problem Set 0
Three problems. No loops, no dictionaries. Just input, output, conditions, and thinking.
| # | Problem | Concepts | Story |
|---|---|---|---|
| 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
| Command | What it does |
|---|---|
l101 pull pset0 | Download starter code |
l101 test namaste.py | Run visible tests locally |
l101 submit pset0 | Submit for grading (max 5 attempts) |
l101 status | Check 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.