Lessons
An introduction to writing Zig
Zig · Introductory. Ten lessons. Open-book quizzes. Lesson 1 free.
10 lessons · The Host · Lesson 1 free
Pass all ten lessons for the certificate. Sample · Claim

Lesson 1 · On the house
Hello and zig run
The smallest Zig program.

Lesson 2
const var and types
Immutability first.

Lesson 3
Arrays and slices
[N]T and []T.

Lesson 4
if and comparisons
bool branches.

Lesson 5
while and for
Loops.

Lesson 6
functions
fn and pub.

Lesson 7
structs
Fields and methods.

Lesson 8
optionals
?T and if capture.

Lesson 9
error unions
!T and try.

Lesson 10
A small program
struct + error.
Sample certificate
Certificate of completion
Sign in to claim your certificate of completion.
Certificate
Finish all ten lessons, then sign in
Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.