
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Start from a blank Windows computer. You download Python from its official website, install it and the notebook with one command each, and run your first lines of code. You also meet your first error message and fix it.
Use Python as a calculator to split a restaurant bill with a tip. You learn the four signs, which sign Python works out first, and how brackets let you choose the order yourself.
Make a folder and a notebook for the section, then store numbers under names with the equals sign. You use the names in a sum to see how much of a weekly grocery budget is left, and change a value to answer a new question.
Pack fifty cupcakes into boxes of six and find the full boxes and the leftovers with two slashes and the percent sign. You meet whole numbers and decimals, see why 0.1 + 0.2 looks odd, and tidy it with round.
Write notes that Python skips, using the hash sign, and add headings in a text cell. You turn a bike savings plan into a notebook that your partner can read and understand without asking you.
Keep a running total of three days of walking with plus equals. You see why a notebook remembers the order cells were run, not the order on the page, and how to rebuild a wrong total from the top.
Use the power sign and write a real formula with names, to find what 1,000 dollars grows to after five years at four percent. You change one name to answer the same question for ten years.
Meet the three most common error messages while working out the fuel use of a road trip. You learn to read the last line first, and to fix a syntax error, a name error and a division by zero, one at a time.
Put the whole section together by budgeting a weekend away: a title, notes, named prices, three parts, a total and each person's share. Then you change the trip to three people from a blank cell.
Meet text in Python, called a string. You put text in quotes, join pieces with a plus sign, repeat it with a star, and print a name badge for a small conference between two lines of characters.
Put numbers and names into a sentence with an F string, and show a price with exactly two decimals. You print the receipt lines of a honey stall at a farmers market and see why a plus sign cannot join a number and text.
Tidy a running club's careless sign-up sheet with the string methods strip, lower, title and replace. You chain them in one line and learn that a method shows a new text but changes the old one only when you store it.
Pick single letters and whole pieces out of a parcel tracking code by their position. You count from zero, count from the end with a minus sign, cut slices with a colon, measure with len, and read an index error.
See what happens when a price from an online form arrives as text: it doubles instead of multiplying. You check types, convert with float, int and str, and meet the two errors that come from mixing text and numbers.
Learn how a program asks a question with input and why the answer is always text. You turn it into a number and work out a waiter's tip and each person's share of the bill.
Ask Python yes or no questions with the comparison signs and read the True or False answers. You check a parcel against a weight limit and learn the difference between one equals sign and two.
Make a program choose between two roads with if and else. You decide whether an online order gets free delivery, and learn the colon and the four-space indent by making each of the two errors on purpose.
Choose between many roads with elif, and see why the order of the checks matters when a wrong order gives a wrong grade without any error. You also combine two questions with and, or.
Put the whole section together by pricing a cinema ticket by age and by day, and testing the rule with several customers. Then you write a parking meter rule from a blank cell.
Keep a whole week of garden temperatures under one name with a list. You pick single days by their position, counting from zero or from the end, and ask Python for the length, the total, the highest and the lowest value.
Keep a family's shopping list up to date by adding a value with append and taking one out with remove. You check whether something is already on the list, and make a sorted copy that leaves the original untouched.
Write an invitation card for every guest of a birthday party with a for loop. You learn what the colon and the indent do, and add a second line to the job the loop repeats.
Add up a year of phone bills with a running total, and work out the average month. You also see the classic mistake of putting the starting zero inside the loop, and count the expensive months.
Build a six week running plan with range, which counts for you. You learn why range stops before its last number, how to count in steps, and how to count backwards.
Find out how many weeks it takes to save for a concert with a while loop that repeats until a rule says stop. You see what keeps a while loop from running for ever, and when to choose it instead of a for loop.
Run the price board of a small cafe with a dictionary. You look a price up by its name, add and change pairs, and ask for a missing key without an error.
Go through every pair of a household budget with items, add up the values, and turn each amount into a share of the month. You also learn why forgetting items gives an error.
Put a dictionary in every row and the rows in a list, which is the shape of a table. You use it to find which books lent to friends are overdue, and to add a new record.
Combine lists, loops and dictionaries to count the votes for an office lunch. You learn the counting pattern with get and a default of zero, find the winner, and use the same pattern for T-shirt sizes.
Meet the functions that already come with Python: min, max, sum, len and sorted. You compare three phone plans, learn what goes in the brackets and what comes back, and use help to read what a function does.
Write your first function with def and return. A recipe in Fahrenheit becomes a temperature your oven understands, and you test the function on numbers you already know.
Give a function more than one input and let one of them fill itself in with a default. A tip helper for group dinners shows how values are matched in order and how keyword arguments name them.
Find out the difference between print and return with a paint calculator for a room. You read the NoneType error that appears when a function only prints, and fix it with one word.
Put if, elif and else inside a function so it returns a different answer for each case. A post office price table shows why the order of the checks matters and why the edges need testing.
Scale a pancake recipe from four to ten people with one small function and a loop over a dictionary. You also learn why a name made inside a function stays inside it.
Borrow ready-made tools with import. You round up with math, draw a raffle winner anyone can check with a seed, and average ticket sales with statistics.
Move your favourite functions into a file of their own and import it from a notebook. You add a new function, meet the error that follows, and learn to reload the file.
Plan the fuel cost of a road trip across three legs with a function that has defaults, a loop, a dictionary and your own toolbox file. Then switch to an electric car without changing a line of the function.
Learn how a computer finds a file. You tell a full path from a short path, build paths with Path and a slash, ask Python whether a file exists, and see why a backslash inside quotes breaks a path in two.
Open the to-do list you keep as a text file and read it with a with block. You split the text into a list of lines, drop the empty lines and the stray spaces, and count the real tasks.
Add a book to a reading log with append mode, create a new file with write mode, and see how one wrong letter wipes a file clean. You restore the log from a backup and learn to keep a copy first.
Read a month of electricity readings from a meter file. Every line arrives as text, so you skip the header and the empty last line, convert with int, and work out the total, the average and the highest day.
Read a teacher's grade sheet saved as a C S V file. You get one dictionary per student, deal with an empty cell and a stray space, and find the students who need extra help.
Add up a gym log by exercise and send the coach a new C S V file with the totals. You write a header and rows with csv.writer and learn what the newline setting does on Windows.
Look inside a Downloads folder nobody has tidied for a year. You list the items, split a file name into stem and suffix, tell files from folders, and count the files by type without being fooled by capital letters.
Give 24 holiday photos names that say when and where. You plan every new name first with a dry run, catch two photos that would clash, and rename the rest safely.
Sort a messy Downloads folder into five folders. A dictionary decides where each kind of file goes, mkdir makes the folders safely, and shutil.move puts every file in its place after a dry run.
Turn the Friday tidy-up into a script and run it from PowerShell with one command. You use cd and dir to move around, learn why a script finds its own folders, and write a second script on your own.
Read a whole error message from the top: the kind of error, the line with the arrow and the message in the last line. You rebuild a friend's party budget and fix a TypeError, a KeyError and an IndentationError.
Add up a month of electricity readings that has one typing slip in it. You catch the error with try and except, collect the bad lines in a list and report them while the total still comes out.
Make Python stop on purpose with raise and a clear message, using a yoga class that holds one to eight people. You then catch your own error and print a friendly sentence instead of a red box.
Track down an answer that is wrong without any error message. You work out the right answer by hand, print the middle values, lock the answer in with assert, and fix a sale price that took off 20 dollars instead of 20 percent.
Make real dates, subtract two of them to count the days between, and add a time delta to find a due date. You use a library book and a flight on 24 December, and see that Python knows the leap years.
Turn dates that arrive as text, such as 12/03/2026 on a bus pass, into real dates with strptime, and write them out again with strftime. You also read the error that appears when the format does not match.
Find the weekday of any date and count the walks of a dog walker for every day of the week. You check that the counts add up to the number of rows and see which day needs extra help.
Work out the hours between a start and an end time and add up a freelancer's timesheet to an invoice total. You find the night shift that crosses midnight, see the negative hours it causes, and fix it.
Put the whole section together on a list of app subscriptions. You read the dates, find the ones that renew in the next 30 days, report an impossible date instead of crashing, and work out the yearly cost of the expensive ones.
Meet Nadia and her coffee roasting business, and install the four packages the rest of the course uses with one command in the terminal. You then start the section's notebook, import pandas as pd, check its version and read the error that a wrong package name gives.
Load the shop's product list into a pandas table with a single line, after typing the first cell that every notebook of this section starts with. You look at the first and last rows, the size of the table and its column names.
Pick one column or a few columns from the product table to build a price card for a market stall. You learn the difference between a single column and a smaller table, and you read the error that a misspelled column name gives.
Get a quick picture of six months of orders with describe and value_counts. You summarise a column of numbers, count the labels of another column, and notice a surprise hiding in the minimum: a refund.
Pick only the rows you need, such as the wholesale orders over ten bags for a delivery plan. You turn a condition into a True or False for every row, combine two conditions with the ampersand, and read the two errors that the word and and missing brackets give.
Sort the orders from the smallest to the largest and back, take the top ten with head and nlargest, and break ties with a second column. You also find the five newest orders on your own.
Multiply two columns to find the money each order brought in, store it as a new column, and add it up for the half year and for each sales channel. You finish by adding a second column in euros.
Answer a customer who asks about one order by picking a single row. You learn iloc for positions and loc for labels, use set_index to make the order number the label, and read the error that a wrong position gives.
Turn dates that were read as text into real dates, take their month and weekday, and see the week of the move in the data. You also use the text tools to pick products by the start of their code.
Practice the whole section by answering five questions from the boss before a bank meeting. You turn each question into a line of pandas with four small steps, check the answers against what you know, and write the last one yourself.
Open the new export from the online shop and look at it before changing anything. You check its size, its column types, its blanks and its spellings, and find out why the April total looked twice too big.
Give every column a short, clean name, with strip, lower and replace. You also learn why rename does nothing until you store its result, and why we clean a copy and leave the raw table alone.
Count the blanks in every column, see what dropna would really delete, and decide column by column what to do. The blank discount codes are filled with the word none, and the blank quantities are kept for a better fix.
Find the fifteen orders that the shop sent twice, look at the twin rows side by side, and remove them with drop_duplicates. You finish by checking that no order number appears twice.
See why a price with a dollar sign is only text, read the error that astype gives, and turn the prices into real numbers. The blank quantities are then rebuilt from the line total and the unit price.
Use value_counts to see every spelling in a column, and make the channels and countries consistent with strip, lower and a replace dictionary. The United Kingdom, written four ways, becomes one name.
Turn dates written in three styles into real dates, and learn why dayfirst alone gives a wrong range. You fix it by reading the shop's dates separately, and check the first and last date.
Remove the TOTAL row that doubled every sum, and find the one order whose quantity disagrees with its own line total. You also decide which odd rows are mistakes and which, like refunds, are real.
Move all the cleaning steps into a function in a Python file, so that any month's export is cleaned with one line. You import it, add two steps, reload it, and protect it with equals and assert.
Practise the whole section on a new file, the customer list. You fill blank cities, strip names, lower emails, remove six people listed twice, and count customers by type and by month.
Find out which of the shop's three sales channels really brings the money, using groupby to split the orders, add up each group and combine the answers. You see why the channel with the most orders is not the one with the most revenue, and you turn the totals into shares.
Ask groupby for several named answers at once with agg, to build the bags, the money and the orders of every coffee in one table for the roasting plan. You sort the table by different columns, add a column of your own, and change the grouping column to see the countries instead.
Group the orders by two columns, month and channel, to build the table that the bookkeeper used to make by hand. You turn the two index levels back into columns with reset_index, then filter and sort the finished table.
Turn the long month and channel table into the grid that the owner keeps on paper, with pivot_table. You choose the calculation with aggfunc, meet the average you get when you leave it out, and add the totals with margins.
Join the orders to the product list with merge, so that every order knows its coffee's name, roast and cost. You check the row count after the join, work out the profit of every order and rank the coffees by profit.
See how an inner merge quietly drops twelve orders of a retired coffee, and find them with a left merge and indicator. You count rows before and after every join, and fix a join whose two key columns have different names.
Read twenty-six weekly export files in a loop and stack them into one table with pd.concat. You discover that a file with a header and no rows spoils the column types, fix it, and check the total against the orders.
Work out each coffee's share of the money, rank the coffees and add up a running total with cumsum. You find how many coffees make eighty percent of the money, to decide what goes on a small market stall.
Turn a table with one column for each month into a long table with one row for each cafe and month, using melt. You group and search the long table, spot the empty cells of a cafe that joined late, and fold the table back into a grid with pivot_table.
Put the whole section to work on a new file, the roast log: add a calculated column, check for missing values, and compare the weight lost by each bean and each roaster. You change the mean to the median to test the answer another way.
Draw your first line chart from the daily website visits, and read from the picture whether the April newsletter made the visits jump. You then confirm what you see with a sorted table and an average before and after.
Turn the plain chart into one that can hang on a wall, with a size, a colour, a title and labels on both sides. You also save the chart as a picture file, and meet the mistake that saves an empty picture.
Add up the revenue of each sales channel and draw it as a bar chart straight from the table, with a title, a label and flat names. You compare money with number of orders, and learn when to choose bars instead of a line.
Make a best sellers chart that people can read: bring in the coffee names, sort the totals and lay the bars on their side. You also fix the coffee names that get cut off when the chart is saved to a file.
Put the monthly revenue of two sales channels on one chart as two lines, and add a legend so the reader knows which is which. You name the months, add a dashed third line, and answer whether the web shop is catching up.
Draw a histogram of web order values to see how orders are spread, and choose the number of bins. You mark the mean and the median, and find out why the most common order is not where the average sits.
Draw a scatter chart of roasting time against weight lost, with one colour for each roaster, using a small loop. You then put a number on how closely the two move together with the correlation.
Put four charts on one page with a grid of boxes, choose the box for each chart, and save the whole page as one picture. You meet the mistake that sends every chart to the last box.
Practice session: load the half-year expenses, spot category names that look the same but are not, and clean them. You draw and save a readable bar chart of where the money went, then chart the five biggest suppliers on your own.
Most people who want to learn Python do not want to become software engineers. They want to stop copying numbers by hand, clean the same messy spreadsheet every month, and get answers out of their data without waiting for someone else. This course teaches exactly that, from the very first line of code to a monthly report that builds itself.
You start on a plain Windows computer. You install Python, open a notebook and type your first line. Then you learn the language one small step at a time: numbers and names, text, decisions, lists, loops, dictionaries and your own functions. Every idea comes with a small, real situation, such as splitting a restaurant bill, packing cupcakes into boxes, or checking which subscriptions renew next week, so you always know why the code matters.
From section five the work gets real. You read and write files, rename and sort hundreds of files in seconds, and read error messages like a professional. Then you meet Juniper Lane Roasters, a small coffee company, and its bookkeeper Priya. With pandas you load their orders, clean dates, prices and codes that arrive in every possible format, group and join tables, and answer the questions a real business asks. You build charts that explain one point clearly, write formatted Excel workbooks with Python, collect data from web pages and APIs, and schedule a script to run on its own.
The course ends with a capstone: the automated monthly report, from a folder of raw files to a finished workbook and charts in one run. A final section adds seven complete projects, start to finish, from customer complaints and a grade book to a freelancer's invoices, so you leave with a portfolio of real work.
Every lesson is about ten minutes, slow paced and recorded on a real screen, so you see every click and every keystroke. You type along in your own notebook, you hit the same mistakes and learn to fix them, and the section quizzes and role plays help you check what stuck. No previous coding experience is needed.
What you get
130 lessons of about ten minutes each, recorded on a real screen
The lesson files: every data file, script and practice web server used in the course
14 section quizzes and 2 practice tests of 30 questions, each answer explained
14 assignments with worked answers, one for every section
14 role plays where you explain your results to a client, a colleague or a boss
A handout for every section and a full course handbook in PDF
A capstone that automates a whole monthly report, plus seven complete real-world projects