Learn to Code — Python for Beginners
Zero to writing your own programs, one small step at a time.
Matches Fundamentals of Computing & AI (TH-5 / PR-4)Getting Started
The one idea everything else in this course builds on.
5 min ≡ Why Python?The language this course — and your syllabus — uses.
5 min ▶ Your first line of codeWrite and run real Python, right here in the browser.
6 minStoring Information
Giving a piece of information a name so you can reuse it.
8 min ▶ Data typesNumbers, text, and true/false — and why the difference matters.
8 min ▶ Getting input from the userMaking a program ask a question and use the answer.
8 minMaking Decisions
How programs get a True or False answer.
6 min ▶ if, elif, elseMaking a program behave differently depending on the situation.
8 minRepeating Yourself
Repeating instructions a known number of times.
8 min ▶ while loopsRepeating until a condition becomes false.
8 minPut It Together
Storing many values together, in order.
9 min ▶ Mini project: number guessing gameVariables, loops, conditions and input — all in one real program.
12 minCoding in the AI Era