2.0 KiB
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| story | First Light | 25 | 25 | 1 |
First Light
[INCOMING — Mission Control, Earth]
Cadet, you've got the ground beneath you. Bash, Git, the cohort — all there. Now we hand you a language.
Python. We picked it because it's small enough to learn fast, big enough to power half the systems running in production right now, and clear enough that you can read it like prose. The trade for "easy to read" is that some advanced concepts come later than they would in C or Java. We'll get to them.
[TRANSMISSION CONTINUES]
Why Python
Three reasons:
- Syntax that gets out of your way. No semicolons. No braces. Indentation is structure. You'll spend more time thinking about the problem than fighting the language.
- Batteries included. A standard library that lets you do networking, data, files, math, dates, and more without installing anything.
- It runs everywhere. Web servers, data pipelines, scripts, embedded systems, machine learning. The skills transfer.
How You'll Run It
You'll meet Python in three ways:
python3 -c 'expression'— run a one-liner from the shell- The REPL — type
python3with no argument; you get an interactive prompt where every line runs immediately - A script — write code in a
.pyfile and run it withpython3 file.py
The next three blocks walk you through all three.
What's Coming
After this module:
strings— text processingflow— conditionals and loopscollections— lists, dicts, setsfunctions— your own building blocksfiles-errors— read/write files, handle failuresalgorithms— recursion, classic problemsoop— classescapstone— the hard ones (8 queens, sudoku, more)
Then the checkpoint.
[CLOSING — Mission Control]
You already know how to learn here. The hard part — the courage to open a terminal — is behind you. The rest is practice and patience.
Open Python on the next block.
[END TRANSMISSION]