Skip to content
All courses

Course

Python from Zero

A daily, hands-on Python course. One short lesson and runnable code every day.

14 of 30 lessons published

47%

Follow along on GitHub →

Contents

Lessons

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

Progress

Recent updates