Skip to content
Codewilds

Serpent Hollow

Learn Python

Readable, powerful and everywhere — the perfect first programming language.

Learn Python online with interactive lessons. Write real Python 3 code in your browser, pass tests, earn XP and beat boss battles. First chapter free.

34 lessons6 chapters6 bosses · 4 quizzes~14 hours1070 XP to earnBeginner
Start the first lesson — free

First 8 lessons free · Finish within 30 days after buying and get $10.50 back

Want more than one course?

The All-Access Pass unlocks all 8 courses and every new one we release, for $120 once.

Course map

6 chapters, 34 lessons

  1. 1

    Fundamentals

    Write your first Python programs and learn the building blocks — variables, data types, numbers, strings, f-strings, if statements and loops. Free to play.

    0/8
  2. 2

    Functions

    Package logic into reusable Python functions — parameters, return values, default and keyword arguments, *args and **kwargs, scope, closures and lambdas.

    0/5
  3. 3

    Lists & Tuples

    Store sequences of data in Python lists and tuples — indexing, slicing, list methods, sorting, unpacking and list comprehensions.

    0/5
  4. 4

    Dictionaries & Sets

    Look things up instantly with Python dictionaries and sets — key-value data, counting, grouping, set operations and comprehensions.

    0/5
  5. 5

    Classes & OOP

    Create your own types with Python classes — __init__, methods, attributes, inheritance, super(), dunder methods and dataclasses.

    0/6
  6. 6

    Errors & Pythonic Tools

    Handle failure gracefully with exceptions and custom errors, then write Pythonic code with iterators, generators, enumerate, zip and sorted.

    0/5

About this Python course

Python is one of the most popular programming languages in the world — and one of the friendliest to learn. Its clean, readable syntax lets you focus on solving problems instead of fighting punctuation. That is why so many universities teach it first, and why web developers, data scientists, automation engineers and AI researchers use it every day.

Learn Python is an interactive Python course for beginners. Instead of watching videos, you learn by doing: every lesson pairs a short, focused explanation with a real coding challenge. You write Python directly in your browser, run it, and hidden tests check your solution instantly. There is nothing to install — a complete Python 3 interpreter runs right inside the page, so you can learn Python online on any computer.

The course takes you from your very first print("Hello, World!") to clean, idiomatic, Pythonic code:

  • Fundamentals — variables, data types, numbers, strings, f-strings, if statements and loops
  • Functions — parameters, return values, default and keyword arguments, *args and **kwargs, scope, closures and lambdas
  • Lists and tuples — indexing, slicing, sorting, unpacking and list comprehensions
  • Dictionaries and sets — fast lookups, counting, grouping, set operations and comprehensions
  • Classes and OOP — objects, inheritance, super(), dunder methods and dataclasses
  • Errors and Pythonic tools — exceptions, custom errors, generators, enumerate, zip and sorted

Codewilds turns all of this into a game. Serpent Hollow is your realm: every lesson earns XP, daily practice builds your streak, and each chapter ends with a boss battle — a bigger challenge that combines everything you just learned. Every test you pass deals damage, and when the boss's health bar hits zero, the path to the next chapter opens.

This Python tutorial is written for complete beginners, but it doesn't stop at the basics. Lessons explain why things work, warn you about the mistakes beginners make most often, and show the idiomatic way experienced Python developers write code. If you already know another language, you will move quickly and pick up modern Python 3 features along the way.

The whole first chapter is free and needs no account. Start now and write your first line of Python in under a minute.

Learn Python: frequently asked questions

Is this Python course free?

The entire first chapter is free — 8 lessons covering variables, data types, strings, conditions and loops, including a quiz and the first boss battle — and you can play it without creating an account. The remaining chapters are unlocked with a one-time purchase of the course. There is no subscription.

Do I need to install Python?

No. Your code runs in your browser on Pyodide, the real CPython interpreter compiled to WebAssembly. Open a lesson and start typing — it works on Windows, macOS, Linux and Chromebooks, with nothing to download or configure.

Is this course suitable for complete beginners?

Yes. It assumes no programming experience at all. Each lesson explains one idea with small examples and then asks you to apply it in code. If you already know another language, you will breeze through the first chapter and still learn how to write idiomatic Python.

How long does it take to finish the course?

About 14 hours of focused practice spread over 34 lessons. At 30–45 minutes a day, most learners finish in three to five weeks.

What is the 30% cashback?

We reward finishers. Buy the course, complete all of its lessons within 30 days of your purchase, and you can claim 30% of the price you paid back with one click (within 30 days of finishing).

Which version of Python does the course teach?

Modern Python 3 — the browser runs CPython 3.14. Everything you learn, from f-strings to dataclasses, works the same way in the Python 3 installed on your own computer or server.

How are my solutions checked?

Every coding challenge comes with hidden tests that call your code with different inputs, including tricky edge cases. You see which tests pass or fail, with the expected and actual values, so you can fix your code and try again as often as you like.

What should I learn after this Python course?

You will be ready to build real projects — automation scripts, web back-ends with Flask, Django or FastAPI, or data analysis with pandas. On Codewilds you can also start a second language such as JavaScript, Go, Java or C#; it is much easier than learning your first.

Other realms