Skip to content
← Python for AI/ML · all 50 levels

and / or / not

Level 11 of 50 · Decisions & loops

Level 11 of 50

and / or / not

explained with Abbu's rules. Watch the reel, then work through it below: run the code, take the quiz, keep the cheat sheet.

📒 Open the cheat sheet
SanaAbbu says I can play only if homework is done AND it's not raining!
TeacherTwo conditions, one answer! That's and, or, not!
rules.py
homework = True
rain = False
print(homework and not rain)
Teacherand needs both sides True. not flips True and False!
SanaWait, not rain becomes True?
TeacherYes! rain is False, so not rain is True. Go play!
rules.py
eid = True
birthday = False
print(eid or birthday)
TeacherAnd or? Just ONE True is enough! New clothes either way!

⏸ Pause & predict: what prints?

print(5 > 3 and 2 > 4)

Where this leads

Python is step one. Building AI that ships is the rest.

The diploma takes you from zero to deployed computer vision, LLM and agent projects, with engineers who build them for a living. Already code? The bootcamp does it in three months.