Learn to code with short, interactive lessons
Python, JavaScript, HTML & CSS and SQL, from your very first line of code. Read a short explanation, run real code in your browser, then practise until it sticks.
How a lesson works
Four short steps, the same in every chapter.
Read
One idea per chapter, explained in a few lines with an example.
Run
Every example runs in your browser: change it, run it again.
Practise
Quick questions check you understood, with hints that never give the answer away.
Level up
Finish each unit with a challenge, earn XP, keep your streak and hatch Codémon.
name = "Aquachu"
print(name)Who makes Code Life
Code Life is made by Pierre Marsaa, Prof. Pi in the app. Each chapter is built to teach one thing well, and lessons are corrected as soon as someone reports a mistake.
More about Code Life →What you can learn
Four independent courses: start with whichever you like.
The best first language: variables, conditions, loops, lists, dictionaries and functions, all the way to files, errors and classes.
Open the course →The language of the web, from console.log() to modern JavaScript: arrays, objects, arrow functions, map() and filter(), closures, JSON and classes.
Open the course →Web
Build real pages with HTML and CSS: structure, links and images, colors and spacing, selectors, the box model and Flexbox.
Open the course →SQL
Query real tables in your browser: SELECT, filters, GROUP BY, joins, subqueries, CTEs and window functions.
Open the course →Frequently asked questions
Yes. Every course is free, on the web and in the app. Code Life is funded by ads; in the app, a one-time purchase removes them.
No. Python, JavaScript, HTML & CSS and SQL all run directly in your browser, so you can write and run code on any computer. On a phone, the app is more comfortable.
If you have never programmed, start with Python: it is the easiest to read. Take the Web course (HTML & CSS) to build pages, JavaScript to make them interactive, and SQL if you work with data.
No. Your progress is saved on your device. Signing in with Google (or Apple on iPhone) saves it to your account, so you can continue on another device.
Yes. Code Life is on the App Store and Google Play, with the same courses and daily reminders to keep your streak.
Yes. Every lesson exists in English and in French: switch language with the flags at the top of the page.