Yes and No Values
Meet True and False.
Yes and No Values is a free Coding for Kids lesson on CoddyKit — lesson 1 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.
Yes and No! ✅❌
Computers love yes and no answers. In Python we write them as True and False. 🤖
Capital Letters! 🔠
True and False always start with a CAPITAL letter. They are special!
print(True)
print(False)Save a Yes 💾
Store a True or False in a variable.
sunny = True
print(sunny)A No Value 🙅
False means no, off, or not true.
raining = False
print(raining)Booleans! 🪙
True and False are called booleans. Think of a coin: heads or tails, on or off! 🪙
Flip a Switch 💡
Use a boolean like a light switch in your program.
light_on = True
print("Is the light on?", light_on)Use in If 🚦
Booleans power if statements!
hungry = True
if hungry:
print("Time to eat!")When False 😴
If the boolean is False, the if block is skipped.
hungry = False
if hungry:
print("Eat!")
print("Done")Not a String! ⚠️
Careful! True with no quotes is a boolean. "True" with quotes is just text!
print(True)
print("True")Yes or No Game 🎲
Booleans answer simple yes/no facts.
has_dog = True
has_cat = False
print(has_dog)
print(has_cat)Why It Matters 💡
Every decision a computer makes comes down to True or False. It is the secret language of choices! 🧠
Quick Check ✅
Brain snack time! 🍪
Boolean Boss! 🌟
You met True and False, the yes/no values called booleans. They power every choice your code makes! 🎉
Frequently asked questions
Is the “Yes and No Values” lesson free?
Yes — the full text of “Yes and No Values” 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 “Yes and No Values”?
Meet True and 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 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Yes and No Values” 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