Asking Questions
Comparisons give True/False.
Asking Questions is a free Coding for Kids lesson on CoddyKit. This is lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, and your progress syncs across the web and the CoddyKit app. The Coding for Kids course includes 4 lessons in total.
Asking Questions ❓
We can ask Python questions, and it answers True or False! These are called comparisons. 🔍
Is It Equal? 🟰
Use == (two equal signs) to ask "are these the same?"
print(5 == 5)
print(5 == 3)Not Equal 🚫
Use != to ask "are these different?"
print(5 != 3)
print(5 != 5)Bigger Than 📈
Use > to ask "is the first bigger?"
print(10 > 2)
print(2 > 10)Smaller Than 📉
Use < to ask "is the first smaller?"
print(2 < 10)
print(10 < 2)Big or Equal 🪜
>= means "bigger or the same".
print(5 >= 5)
print(4 >= 5)Compare Words 🔤
You can even compare words to see if they match!
name = "Leo"
print(name == "Leo")Save the Answer 💾
Store the True/False answer in a variable.
age = 9
big_kid = age >= 8
print(big_kid)Question in If 🚦
Comparisons are perfect inside if!
score = 100
if score == 100:
print("Perfect!")Two Equals, Not One ⚠️
Remember: = stores a value, but == ASKS a question. Big difference!
x = 7
print(x == 7)Questions Everywhere 💡
Comparisons let your code decide things, like "is the score high enough to win?" 🏆
Quick Check ✅
Pick the answer! 🎯
Question Wizard! 🌟
You can ask ==, !=, >, <, >=, <= and get True or False. Now your code can think! 🧠🎉
Learn Python with an AI tutor — free
Write and run real code in your browser, get instant help from a 24/7 AI tutor, and pick up where you left off on the web or in the app.
- Courses
- 35
- Lessons
- 140
Frequently Asked Questions
Is the “Asking Questions” lesson free?
Yes — the full text of “Asking Questions” is free to read here on the web. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO. The Coding for Kids course includes 4 lessons in total.
What will I learn in “Asking Questions”?
Comparisons give True/False. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Coding for Kids?
No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners, so you can start here or from the beginning and move at your own pace. This is lesson 2 of 4.
How long does the “Asking Questions” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Coding for Kids lesson?
Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Yes and No Values
- Asking Questions
- And, Or, Not
- A Simple Yes/No Quiz