Lessons
Pick a track. Lessons go from first steps to job-ready skills.
Automate what spreadsheets cannot, one small program at a time.
0 / 33 completed
3 free lessons left. Pick any lesson in any track.
Basics
- 1Variables and printStore values in variables and print results.
- 2StringsClean, slice and format text with string methods and f-strings.
- 3ConditionsMake decisions with if, elif and else.
- 4Numbers and mathDivide, round and convert numbers for everyday business calculations.
- 5Formatting numbers in textShow thousands separators, decimals, percentages and aligned columns with f-strings.
Collections
- 6ListsKeep many values in one list and summarise them.
- 7For loopsRepeat an action for every item and build up totals.
- 8While loopsRepeat until a condition changes, and stop early with break.
- 9DictionariesLook values up by name and count by category.
- 10Slicing lists and textTake the first, last or middle items of a list or a string.
- 11Tuples, zip and enumerateGroup values in tuples, number the items of a list and walk two lists side by side.
- 12Sets and unique valuesRemove duplicates and compare two lists of customers.
- 13SortingSort numbers, text and table rows by any rule.
- 14Nested dataRead and total lists and dictionaries stored inside other dictionaries.
Functions
- 15FunctionsWrite a calculation once and reuse it with different inputs.
- 16ComprehensionsBuild and filter lists and dictionaries in one line.
- 17Function argumentsGive functions default values, named arguments and more than one result.
- 18lambda, map and filterTransform and filter lists with small one-line functions, and test a whole list with any and all.
Working with data
- 19Tables as lists of dictionariesFilter, sort and total records the way you would in an Excel table.
- 20Text dataSplit lines into fields, clean them and convert text to numbers.
- 21Errors and messy dataHandle bad values with try and except instead of crashing.
- 22Counting and groupingCount values and total rows by category with Counter and defaultdict.
- 23DatesCreate, read and format dates, and count the days between them.
- 24CSV dataRead CSV text into rows and dictionaries with the csv module.
- 25JSON dataTurn JSON text into dictionaries and lists, and back into text.
- 26StatisticsDescribe a column of numbers with the mean, median, mode and standard deviation.
- 27Regular expressionsFind, extract, replace and validate text with patterns.
pandas
- 28pandas: your first DataFrameBuild a table in pandas and read its size, columns, totals and single cells.
- 29pandas: filtering rowsKeep the rows that match one or more conditions, then count and total them.
- 30pandas: sorting and new columnsSort a table, take the top rows and add calculated columns.
- 31pandas: groupbyTotal, average and count a column per group, like a PivotTable.
- 32pandas: merge and pivot_tableLook up columns from a second table, then build a cross table.