Learn How to Code
Your first steps in programming: store data in variables, work with numbers, text and true/false values, make decisions, package steps into functions, and repeat work with lists and loops. Examples use Python, and every idea carries over to other languages.
- Beginner level
- 6 modules
- 17 lessons
- 74 tasks and questions
Syllabus
01What Programming IsWhat a program is, how a computer reads it line by line, and what to do when it breaks.2 lessons
02Variables and Data TypesGive values names so you can reuse and change them, and meet the basic kinds of data: numbers, text and true/false values.3 lessons
03OperatorsCalculate with arithmetic operators, compare values to get True or False, and combine conditions with and, or and not.3 lessons
04FunctionsPackage a set of steps under one name, feed it inputs with parameters, and get results back with return.3 lessons
05Making DecisionsLet a program choose what to do with if, else and elif, so different data leads to different actions.2 lessons
06Lists and LoopsKeep many values in one list, repeat work with for and while loops, and combine everything in a small project.4 lessons