# Your first function
def greet(name):
    return f"Hello, {name}!"

for i in range(3):
    print(greet("learner"), i)
Press Run to see the output.

Learn Coding
the simple way.

Clear lessons. Real code. A learning experience built for curious minds.

Interactive
lessons
Code editor
in browser
Academy
Community

Learn Python with structure and at your own pace.

20 interactive lessons, a code editor that runs in your browser, and an AI helper that explains your errors. No setup, no rush.

First 4 lessons free. No credit card.

AI debug assistantOfficial certificate
  lesson_01.py
# Your first function
def greet(name):
    return f"Hello, {name}!"

for i in range(3):
    print(greet("learner"), i)
Press Run to see what this prints.

Choose how you want to learn

Three learning modes. Each short video shows how it works.

Everything you need in one place

Pay once, learn forever

No subscriptions. Every paid plan is a one-time payment.

20 lessons, one complete path

From your first print() to building a full data program. Each lesson builds on the last.

    Ready to write your first line?

    Try 4 lessons free, then decide if PyLernen is right for you.