Asking Questions
Comparisons give True/False.
Asking Questions is a free Coding for Kids lesson on CoddyKit — 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, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
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! 🧠🎉
Frequently asked questions
Is the “Asking Questions” lesson free?
Yes — the full text of “Asking Questions” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. 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.
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; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
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