500+
Practice questions
Multiple choice, predict the output, fix the bug, fill the blank, put lines in order and write your own code. All checked instantly.
A free Python course for beginners: 10 short lessons, 500+ practice questions and a free Python compiler in your browser. Go from your first line of code to a quiz game you build yourself. No 60-hour videos, no experience needed.
PYTHON QUIZ Question 1: What does print() do?> display textCorrect! Question 2: Which symbol compares two values?> ==Correct! Your score: 8/10Excellent work!$
↑ The quiz game you build in Lesson 10.
In short
Mentr Learn Python is a free online Python course for beginners. Python Beginner has 10 lessons: printing text, variables, user input, if/else, logic, loops, strings, lists and functions, then a final project where you build a quiz game. It includes 500+ practice questions, lesson notes and a free online Python compiler. It costs ₹0, needs no card, and works for school students from Class 6 as well as adults starting from zero.
01 / A new way
Most beginners buy a long video course, watch a few hours and quietly stop. Nobody learns to code by watching. You learn by writing code, getting it wrong and fixing it.
So that’s the whole course: short lessons where you do something every minute, questions that check you instantly, and a compiler right in your browser. No paid program, no 400-page documentation, nothing to install.
The usual way
Mentr Learn Python
A 60-hour video course you half-watch at 2× speed
About 8 hours of short lessons where you do something every minute
₹3,000 to ₹50,000 for a paid program or class
₹0. No trial, no card, nothing locked
Long documentation written for working engineers
Plain English and school-level examples, one idea at a time
Install Python and set up an editor before line one
Code runs in your browser, even on a phone
Nobody checks your work until the exam
Every answer is checked instantly, with a hint when you're wrong
You guess what code will do before you see it. Wrong guesses are where the learning happens.
You watch a program get built line by line, then build one yourself. Beginners learn faster this way than from a blank page.
A question after every idea, not one big test at the end. Recalling something is what makes it stick.
XP for every right answer, badges and a daily streak keep you coming back for ten minutes a day.
02 / What you get
500+ practice questions, a free Python compiler, lesson notes and runnable examples — in one place, built for beginners, and working on any laptop or phone.
500+
Multiple choice, predict the output, fix the bug, fill the blank, put lines in order and write your own code. All checked instantly.
Free
Write and run any Python program in your browser. Type input() answers right in the console, like a real terminal. Nothing to install.
10
Short slide notes for every lesson, with diagrams, tables, exam tips and flashcards. Read them again any time before a test.
Live
Step through code line by line and see each variable change. Then edit the example and run it yourself.
1
Build a complete quiz game on your own, with hints one at a time if you get stuck.
50
Earn XP for every right answer, climb 50 levels, unlock 10 badges and keep a daily streak.
Free Python compiler
Real Python 3, running in your browser. When your program asks a question with input(), you type the answer right in the output, like a real terminal. Errors point to the exact line and explain the fix in plain English.
▶ Run main.py What is your name? AaravHow old are you? 12Hi Aarav! Next year you will be 13. finished in 4 ms$
03 / Compare
It’s not a video loop, and it’s not a paid program. Here’s how Mentr Learn Python compares with the usual options, row by row.
| Feature | Free · this courseMentr Learn Python | YouTube video courses | Paid video courses | Coding classes | Docs & tutorial sites |
|---|---|---|---|---|---|
| Price | ₹0, everything included | Free, with ads | Paid course fee | High fee, often monthly | Free |
| Time to learn the basics | About 8 hours, hands-on | 10–60 hours of video | 20–60+ hours of video | Months of fixed classes | No clear path |
| How you learn | You do: predict, fix and write code | You watch | You watch and copy | Group pace, set by the class | You read long pages |
| Practice with instant feedback | 500+ questions, checked instantly | None | A few quizzes | Homework, checked later | Rarely |
| Write and run code | Built-in compiler, nothing to install | Install Python yourself | Usually install yourself | On the class computer | Some have a try-it box |
| Works on a phone | Yes, including the compiler | Watch only | Watch only | No | Reading only |
| When you're stuck | Hints, error line highlighted, plain-English fix | Scroll the comments | Post in a Q&A forum | Wait for the next class | Search on your own |
| Made for school students | Yes, Class 6+ and CBSE-friendly | Mixed | Mostly for adults | Depends on the class | Written for developers |
| Progress you can see | XP, 50 levels, badges, streak | None | Progress bar, certificate | Teacher feedback | None |
← Swipe to see all columns
Compares typical formats, not specific brands. Prices and course lengths vary.
Skip the 60 hours of video. Start writing Python today.
04 / The basics
Python is a programming language — a way to give a computer instructions it can follow. It’s known for being easy to read, which is why it’s the most popular first language for beginners.
You write a line like print("Hello"), run it, and the computer shows Hello. Every app, game and website is made of instructions like this — just many more of them.
Score counters, guessing games, quiz apps — the kind of thing you build in this course.
Parts of apps you use every day, like YouTube and Instagram, run on Python.
Most AI and machine learning tools are built with Python. So is a lot of science research.
05 / Why Python
Because it’s the easiest real programming language to start with. Python code is short and reads almost like English. Here’s the same program — show the word Hello — in Java and in Python.
Java · 5 lines
1public class Main {2 public static void main(String[] args) {3 System.out.println("Hello");4 }5}Five lines, and a lot of extra words, before anything shows on screen.
Python · 1 line
1print("Hello")One line. You can read it out loud and know exactly what it does.
if score >= 50: print("Passed") reads almost like English. You spend your time thinking about the problem, not fighting with symbols.
CBSE Computer Science and Informatics Practices in Class 11 and 12 use Python. Learning it now gives you a head start.
Websites, apps, games, data analysis and AI tools are all built with Python. It’s not a toy language.
Loops, lists and functions work the same way in Java, C++ and JavaScript. Learn them once in Python and the next language is much easier.
06 / Inside a lesson
Every lesson follows the same five steps, so you always know what comes next. And every lesson ends with you writing a small program on your own — not just answering a quiz.
A new idea, explained with an everyday example.
Read a short piece of code and guess what it will do.
Build a small program step by step, with help.
Quick questions with instant feedback: predict, fix and write code.
Write a small program on your own to finish the lesson.
07 / Syllabus
10 lessons, from your first line of code to your first full project. Tap a lesson to see what’s inside: the topics, the code you’ll write, a practice question to try, the mistake to avoid and a small challenge.
A robot does nothing until it gets exact instructions, in the right order. Python is a way to write those instructions.
Text needs quotes. print(Hello) is an error; print("Hello") works.
Write and run a multi-line program and explain the order it runs in.
1# This is my first program2print("My name is Aarav")3print("I am 12 years old")4print("I love games")print("A")
print("B")
print("C")Which letter appears first?
A. Python runs a program from the top line down, one line at a time.
Introduce yourself in at least four lines.
A variable is a labelled box. In score = 100, score is the label on the box and 100 is what’s inside.
Names can’t start with a number or contain spaces. player_score works; 2score and player score don’t.
Store text, whole numbers, decimals and True/False, and tell the four types apart.
1name = "Aarav"2age = 123height = 5.44is_student = True56print(name, age, height, is_student)score = 10 score = 20 print(score)
What gets printed?
20. A variable holds only its latest value; the 10 is replaced.
A game player profile with name, age, score and favourite game.
Until now the program knew everything in advance. With input(), the person at the keyboard gets to answer.
% gives the remainder, not a percentage. number % 2 == 0 means the number is even.
Ask for values, convert them, and calculate with all five operators.
1num1 = int(input("First number: "))2num2 = int(input("Second number: "))34print(num1 + num2)5print(num1 - num2)6print(num1 * num2)age = input("Age: ")
print(age + 1)Why does this crash?
input() always returns text, and text can’t be added to a number. int(input("Age: ")) fixes it.
A bill calculator: enter price and quantity, print the total.
If it’s raining, take an umbrella. Otherwise, don’t. Programs make decisions the same way, one condition at a time.
= stores a value; == compares two values. Mixing them up is the most common bug in this lesson.
Write if / elif / else using all six comparison operators.
1age = int(input("Enter your age: "))23if age >= 10:4 print("You can play!")5else:6 print("You cannot play yet.")score = 72
if score >= 90:
print("Excellent")
elif score >= 70:
print("Good")
else:
print("Try again")Which word is printed?
Good. Python checks from the top and stops at the first condition that is true.
A grade checker: marks in, grade out.
You can enter the competition if you’re at least 10 and you scored at least 50. Both have to be true. This lesson is less new syntax, more thinking.
Nesting works, but two levels is usually the limit. A single and often reads more clearly.
Combine conditions with and, or and not, and decide when nesting helps.
1age = int(input("Age: "))2score = int(input("Score: "))34if age >= 10 and score >= 50:5 print("Eligible")6else:7 print("Not eligible")A = True B = False print(A and B) print(A or B) print(not A)
What are the three results?
False, True, False. and needs both; or needs one; not flips the value.
A game unlock: enough points and the right level opens the next stage.
Typing print("Hello") five times is fine. Then someone asks for five hundred.
A while loop needs something inside it to change, or it never stops.
Repeat work with for and range(), and write a while loop that ends.
1number = int(input("Enter a number: "))23for i in range(1, 11):4 print(number, "x", i, "=", number * i)for i in range(1, 4):
print(i)What gets printed?
1, 2, 3. range stops just before the end number.
A countdown: 5, 4, 3, 2, 1, GO!
To Python, the word "Python" is six characters standing in a row, numbered from 0.
Index and length are different. The last letter of a 6-letter word is at index 5, not 6.
Read, measure and change text with indexing and string methods.
1first = input("First name: ")2last = input("Last name: ")3number = input("Favourite number: ")45username = first.lower() + last[0].lower() + number6print(username)name = "Python" print(name[0]) print(len(name))
What two values are printed?
P and 6. Counting starts at 0, but len() counts every character.
A secret message transformer that changes a message in several steps.
fruit1, fruit2 and fruit3 work for three fruits. A list keeps all of them under one name, in order.
On a 3-item list, games[3] is an error. The last item is games[2].
Create a list, change it, and loop through every item.
1games = ["Minecraft", "Chess", "Roblox"]2games.append("Football")3games.remove("Chess")45for game in games:6 print(game)games = ["Minecraft", "Chess"]
games.append("Roblox")
print(len(games))What gets printed?
3. append() adds one item to the end.
A shopping list program: start with items, add one, remove one, print all.
Writing the same lines again and again? Give them a name, then call the name.
print() shows a value on screen. return hands it back so the rest of the program can use it.
Write functions with parameters and return values, and reuse them.
1def calculate_score(correct, total):2 return correct * 100 / total34result = calculate_score(8, 10)5print(result)def add(a, b):
return a + b
print(add(5, 3))What gets printed?
8. 5 and 3 go in, add() returns their sum.
Write greet(), calculate_total() and check_score(), then use all three in one program.
No video this time. A problem, a blank file, and five hints if you need them.
Get one question working first, then add the loop.
Plan and build a complete program from a blank file.
1questions = ["What does print() do?", "Comparison symbol?"]2answers = ["display text", "=="]3score = 045for i in range(len(questions)):6 reply = input(questions[i] + " ")7 if reply == answers[i]:8 score = score + 1Finish the game with your own questions and a final result message.
All 10 lessons are free. Start with Lesson 1 today.
08 / Final project
A quiz game, written by you. Lesson 10 has no video. You get a task: build a game that asks questions, checks the answers and keeps score. You won’t see the full answer. If you get stuck, open a hint.
PYTHON QUIZ Question 1: What does print() do?> display textCorrect! Question 2: Which symbol compares two values?> ==Correct! Your score: 8/10Excellent work!$
The game uses everything from the course: variables, input, text, if/else, loops, lists and functions. When it runs, you’ve written a complete program on your own — and you earn the Python Beginner badge.
09 / Levels
Python Intermediate, then Python Advanced. Finish a level to earn its badge. Beginner is open now; the next two levels are coming soon and will open on this page.
Level 1
From your first print() to a working quiz game. No coding background needed.
Badge earned by: build a complete mini quiz game on your own
Level 2
Write longer programs that hold real data, recover from errors and stay organised.
Badge earned by: build small tools that save and load data
Coming soon
Level 3
Think in algorithms, work with outside data and structure code like a developer.
Badge earned by: ship a multi-file project you can show
Coming soon
10 / For parents
Yes, if your child is in Class 6 or above and curious about how apps and games work. No coding experience is needed.
11 / FAQ
Yes. Python Beginner on Mentr Learn is a full 10-lesson Python course that costs ₹0. There’s no trial, no card and nothing locked behind a payment.
Yes. Python is the most popular first programming language because the code is short and easy to read. A first program is one line: print("Hello").
The basics are not hard. Python Beginner teaches one idea per lesson, starts with everyday examples, and gives you practice after every new concept. If you can follow a recipe, you can follow a Python program.
Class 6 (around age 11) is a good time to start typed Python. For younger children in Class 3–5, Mentr Learn offers free coding, AI and maths lessons that don’t need typing.
Python Beginner is 10 lessons and fully self-paced. At one or two lessons a week, you’d finish the basics in about one to two months, including the final project.
No. To learn the basics you need practice, not hours of video. Python Beginner is about 8 hours of short lessons where you predict, fix and write code yourself, with 500+ questions that are checked instantly.
Yes. Every learner gets a free Python compiler that runs in the browser, on laptops and phones. Write any program, press Run, and type answers to input() right in the output console. Nothing to install.
No. Lesson 1 starts from zero: what programming is and how to show text on screen with print(). Each lesson builds on the one before.
Write small programs on your own — a calculator, a grade checker, a times table, a shopping list — and a complete quiz game that uses variables, input, if/else, loops, lists and functions together.
Websites and apps, games, automating boring tasks, data analysis, science research, and artificial intelligence and machine learning. Many of the AI tools people use today are built with Python.
Python Beginner is open now. Python Intermediate and Python Advanced are being built and will open on this page. Finishing Beginner is the right way to prepare for both.
Mentr Learn for Class 3–5 teaches computer science, AI and maths with narrated videos and block coding — no typing. Learn Python is real typed Python from the first lesson, for older students and beginners of any age.
Yes. Search Python tutors on Mentr and book a free online demo from any tutor’s profile. The course stays free whether or not you hire a tutor.
Lesson 01
It takes about a minute. The whole course is free, from Lesson 1 to the final project.