Course
Python from Zero
A daily, hands-on Python course. One short lesson and runnable code every day.
Contents
Lessons
- 01Getting Started with PythonInstall Python, run your first script, and learn how the course works.1 min read
- 02Variables and Data TypesStore values in well-named variables and tell apart text, whole numbers, decimals and True/False values.5 min read
- 03Numbers and MathDo arithmetic in Python, control the order of operations, and round results so they're easy to read.5 min read
- 04Working with StringsJoin, slice, clean up and format text in Python using indexes, string methods and f-strings.5 min read
- 05Getting User Input and Type ConversionAsk the user for values, turn their answers into numbers, and build small interactive calculators.5 min read
- 06Booleans and ComparisonsCompare values and combine conditions with and, or and not to get True or False answers.5 min read
- 07If, Elif, ElseMake your programs choose what to do with if, elif and else, and handle several possible cases cleanly.5 min read
- 08While LoopsRepeat code with while loops for as long as a condition holds, and keep asking until the user gives a valid answer.5 min read
- 09For Loops and range()Repeat code a set number of times with for and range(), and step through every character of a string.5 min read
- 10ListsStore many values in one list, then add, remove, sort, search and loop over them.5 min read
- 11TuplesGroup related values into tuples, unpack them into variables, and know when to pick a tuple over a list.5 min read
- 12DictionariesStore values by name in dictionaries, then look up, add, update, remove and loop over them.5 min read
- 13SetsUse sets to remove duplicates, check membership fast and compare groups with union, intersection and difference.5 min read
- 14Loop Patterns: enumerate, zip, break, continueNumber items with enumerate, walk two lists together with zip, and control loops with break and continue.6 min read
Progress