Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
These challenges use ideas from Unit 1 (types, variables, operators) and Unit 2 (conditionals, while / for, break, and random). Try each task on your own first, then peek at the linked solution if you are stuck.
Lessons: 1.1 Types · 1.2 Variables · 1.3 Operators · 2.1 Conditionals · 2.2 Loops
Navigation
Tutorials: Tutorial 2.1 · Tutorial 2.2
python123.if / elif / else.elif ladder.for loop.math.factorial).** or pow.* with n rows (row i has i stars).Solutions are on separate pages: e.g. Task 1 solution.