Beginner ยท 24 lessons ยท free ยท ages 9+
Learn Python for beginners.
Python is one of the friendliest languages to start with. Each lesson explains one idea in a minute, then gives you one small task: write the code, press Run, and get a tick when it is right.
24 lessons
What you will do
1. Hello, Python
Your first program
Make the program print exactly: Hello, world!
Start โ2More than one line
Print three lines: Ready, Steady, Go!
Start โ3Variables: names for values
Make a variable called score that holds 25, then print score.
Start โ4Numbers and maths
A rectangle is 8 wide and 5 high. Print its area (width times height) using the two variables.
Start โ2. Working with text
Putting values into text
Print Asha is 11 years old. using an f-string with the variables name and age.
Start โ6Things text can do
Print the word in capital letters, then print how many letters it has.
Start โ7Pieces of text
Print the first letter of the word, then the word backwards.
Start โ8Joining and repeating text
Print the text Level 5 by joining "Level " and the number level, and then print a line of 10 dashes using *.
Start โ3. Making decisions
Asking a question with if
If temperature is above 30 print Hot day.
Start โ10if and else
If score is 40 or more print Pass, otherwise print Try again.
Start โ11More than two choices
Print A if marks is 80 or more, B if it is 60 or more, otherwise C.
Start โ12and, or, not
Print Welcome if age is between 8 and 12 (both included), otherwise print Sorry.
Start โ4. Loops
Repeating with for
Print the numbers 1 to 5, one per line.
Start โ14Adding up in a loop
Add up the numbers 1 to 10 in a loop and print the total (it should be 55).
Start โ15Repeating while something is true
Start with n = 100 and keep halving it with n = n // 2 while n is bigger than 5. Print n at the end.
Start โ16Loops that decide
Print only the even numbers from 1 to 10, one per line.
Start โ5. Lists and dictionaries
Lists: many values in one
Print the first pet, the last pet, and how many pets there are.
Start โ18Going through a list
Loop over the list and print each fruit in capital letters.
Start โ19Changing and measuring lists
Add 12 to the list, then print the biggest score and the average of all the scores.
Start โ20Dictionaries: labels and values
Add Meera with age 10 to the dictionary, then print every name and age like Asha 11.
Start โ6. Functions and a project
Functions: your own instructions
Write a function called cheer that prints Hip hip hooray! and call it twice.
Start โ22Giving a function information
Write a function double that returns its input times 2, and print double(21).
Start โ23Functions that decide
Write is_even(n) that returns True for even numbers and False for odd ones, then use it in a loop to print the even numbers from 1 to 6.
Start โ24Project: a quiz scorer
Write a function score(answers) that counts how many answers equal "yes", then print the result as You scored 3 out of 5 (use the length of the list for the out of number).
Start โNext
Keep going
Learn HTML
HTML is the language that builds every web page. Type a little code, watch the page appear next to it, and get a tick when you have it right.
8 lessons ยท Beginner ยท ages 9+ โLearn CSS
CSS makes a web page look good. The page is already written; you write the style rules and watch it change as you type.
8 lessons ยท Beginner ยท ages 10+ โLearn JavaScript
JavaScript makes pages do things. Write a few lines, press Run, and see what your program prints. The lessons start from nothing.
8 lessons ยท Beginner ยท ages 11+ โPython Studio
Premium ยท free for nowPython Studio is for learners who have started Python and want to make things: draw spirals and rosettes with the turtle, write secret codes, referee a game, build a deck of cards and make a ball bounce. Each project has one clear goal and instant checking.
18 lessons ยท Beginner to confident ยท ages 10+ โCoding Grandmaster
Premium ยท free for nowCoding Grandmaster is for learners who know Python basics and want to understand how the clever parts work. Instead of importing libraries, you build them: a sieve, a sorting counter, Bayes' rule, a regression line, a nearest-neighbour classifier and a small neural network, one short project at a time.
46 lessons ยท Advanced ยท ages 13+ โWeb Developer Path
A complete start to web development. Each lesson explains one idea, shows a colourful example you can run, and gives you code to type and practise, with a live preview and instant checking as you go.
18 lessons ยท Beginner to intermediate ยท ages 12+ โFAQ
Learn Python: questions
What will I learn in Learn Python?
You will write Python programs with variables, text, decisions, loops, lists, dictionaries and functions, and finish with a small project of your own. Each of the 24 lessons has one small task and automatic checking.
How long does it take?
About 360 minutes in total, 24 short lessons of around 15 minutes each. Go at your own pace.
Do I need to know anything first?
No. It starts from your first line of code, and the early lessons only need typing and counting.
Do I get a certificate?
Yes. Finish all the lessons and you can download a free certificate of completion with your name. It is a record of what you did, not an accredited qualification.
Start a conversation
Want a teacher beside you?
Tell us the learner's age, country and goal. We suggest a starting point and confirm the format and price before anything is booked.
- Tell us the learnerโs age or grade and goals
- Weโll suggest a suitable class or learning path
- Weโll confirm format, timing and fees with a parent or guardian
Play it, don't just read it
Write some code right now
Free games that need no sign-up. Pick one and play for five minutes.
Pick a game
- Predict the OutputRead a short Python program and choose what it prints. Then watch it runโฆPlay
- Bug HunterA Python program prints the wrong answer. Find the one line with theโฆPlay
- Code BuilderThe lines of a Python program are mixed up. Tap them into the rightโฆPlay
- Code JungleWrite real Python to guide Miko the monkey to every banana. 24 levels:โฆPlay