0Pricing
Coding for Kids · Lesson

And, Or, Not

Combine yes/no answers.

And, Or, Not is a free Coding for Kids lesson on CoddyKit — lesson 3 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.

And, Or, Not 🔗

We can combine yes/no answers with three magic words: and, or, not! 🪄

AND needs BOTH 🤝

and is True only when both sides are True.

print(True and True)
print(True and False)

OR needs ONE 🙌

or is True when at least one side is True.

print(True or False)
print(False or False)

NOT flips it 🔄

not turns True into False, and False into True!

print(not True)
print(not False)

And with Questions 🍦

Combine comparisons with and.

age = 9
print(age > 5 and age < 12)

Or with Questions 🎈

Use or when any one is enough.

day = "Sat"
print(day == "Sat" or day == "Sun")

Not a Question 🙃

not flips the answer of a comparison.

raining = False
print(not raining)

Snack Rule 🍪

Both must be true to get a snack!

homework_done = True
is_evening = True
if homework_done and is_evening:
    print("Snack time!")

Play Rule 🎮

Weekend OR holiday means play time!

weekend = False
holiday = True
if weekend or holiday:
    print("Go play!")

Combine All Three 🌈

You can mix them in one line!

sunny = True
cold = False
print(sunny and not cold)

Logic Power 💡

These three words let your code make smart choices with many conditions at once! 🧠

Quick Check ✅

Logic brain snack! 🍪

Logic Legend! 🌟

You learned and (both), or (at least one), and not (flip). Now your code can handle tricky rules! 🎉

Frequently asked questions

Is the “And, Or, Not” lesson free?

Yes — the full text of “And, Or, Not” 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 “And, Or, Not”?

Combine yes/no answers. 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 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “And, Or, Not” 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

  1. Yes and No Values
  2. Asking Questions
  3. And, Or, Not
  4. A Simple Yes/No Quiz
← Back to Coding for Kids