Write real Python in your browser: variables, strings, conditionals, loops, lists, and functions.
Python reads more like English than almost any other programming language, which is why so many people begin with it. This course starts at the very beginning: the first line of code you will ever run. There is nothing to install or configure; real Python 3.13 runs directly in your browser, and the first thing you type will produce a visible result.
You will learn how to display values, store them in variables, perform arithmetic, break sentences apart and build new ones, make decisions with conditions, repeat tasks with loops, organize multiple values in lists, and package reusable tasks into functions. Each concept is simple on its own, but together they form the foundation of almost every program.
Throughout the course, you will build Trailhead, a console-based companion for a small hiking area that grows alongside your skills. It begins as a welcome board, then expands to show trail information, calculate walking times, assess difficulty, display elevation profiles, manage a complete trail list, and finally become an interactive kiosk that asks visitors questions and responds reliably.
The next course, Python Data Structures, begins just as you start to outgrow the list.
45 Lessons • 53 Practices • 18 Quizzes • 4 Projects · ~10h Total
Not just theory. You finish this course with real work to show.
This is the same in-browser editor every lesson uses. Edit the code, hit Run.
Run code in the browser and see the result immediately. Every lesson works this way.
Stuck? Puff explains the error and nudges you forward, without giving the answer away.
Streaks, diamonds, and certificates. Your progress saves automatically, forever.
Every completed course issues a certificate with a public verification link.
Every certificate has a public verification link employers can check.
One certificate per course. Finish a program and earn its program certificate too.
LinkedIn-ready, with a PDF you can download and attach.
You have never written a line of code. This starts before the beginning: the first practice changes words, not syntax.
You are starting the Python Developer program at its front door, and everything after this course assumes this one.
You learned by copying and adapting. This puts the fundamentals underneath what already works for you.
Python Basics is free to start, no credit card needed. Some later sections are part of Pro, and finishing every section, including the certificate, needs a Pro plan.
No. Python Basics assumes nothing at all: no other language, no terminal, and no vocabulary. The first lesson runs one line of code and explains every part of it.
No. Devpuff runs real CPython 3.13 inside the browser tab, compiled to WebAssembly, so there is nothing to download, no version to pick, and nothing to configure. The first run of a session spends a few seconds fetching the language itself, and every run after that is instant.
A browser tab has no keyboard console for a program to read from, so items that ask a question ship a short block at the top of the editor that supplies the answers instead. Everything below that block is ordinary Python, and `input()` is written exactly as it would be anywhere else. Devpuff explains this in a lesson rather than hiding it.
Programs that read values, make decisions, repeat work, and report results: calculators, converters, text tools, and small console utilities. The course closes on one you build yourself, a kiosk that asks a visitor questions and answers them.
About 10 hours across 120 items, which most learners spread over two to four weeks. Items are designed to take about five minutes each, so progress does not need a free evening.
Yes, for this course at 100 percent. It also counts towards the Python Developer program certificate, which issues once every course in that program is complete.
How this course connects to the bigger picture, and what to explore next.
Model real data with Python lists, tuples, dictionaries, sets, and comprehensions.
Go deeper into Python functions: arguments, scope, lambdas, decorators, generators, and modules.
Write object-oriented Python: classes, inheritance, properties, special methods, and dataclasses.
Free to start, no credit card required. Write real code from the first lesson and keep your progress forever.
Start Learning Free