seed: curriculum content
This commit is contained in:
71
1.solar-system/2.first-light/01.first-light/index.md
Normal file
71
1.solar-system/2.first-light/01.first-light/index.md
Normal file
@@ -0,0 +1,71 @@
|
||||
---
|
||||
type: story
|
||||
title: "First Light"
|
||||
xp: 25
|
||||
duration: 25
|
||||
difficulty: 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:
|
||||
|
||||
1. **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.
|
||||
2. **Batteries included.** A standard library that lets you do
|
||||
networking, data, files, math, dates, and more without installing
|
||||
anything.
|
||||
3. **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 `python3` with no argument; you get an
|
||||
interactive prompt where every line runs immediately
|
||||
- **A script** — write code in a `.py` file and run it with
|
||||
`python3 file.py`
|
||||
|
||||
The next three blocks walk you through all three.
|
||||
|
||||
## What's Coming
|
||||
|
||||
After this module:
|
||||
|
||||
- `strings` — text processing
|
||||
- `flow` — conditionals and loops
|
||||
- `collections` — lists, dicts, sets
|
||||
- `functions` — your own building blocks
|
||||
- `files-errors` — read/write files, handle failures
|
||||
- `algorithms` — recursion, classic problems
|
||||
- `oop` — classes
|
||||
- `capstone` — 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]
|
||||
Reference in New Issue
Block a user