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

Comparisons

Level 10 of 50 · Decisions & loops

Level 10 of 50

Comparisons

explained with Lahore heat. Watch the reel, then work through it below: run the code, take the quiz, keep the cheat sheet.

📒 Open the cheat sheet
SanaLahore is 41°. Karachi is 38°. Which is hotter?
TeacherAsk Python! Comparisons always answer True or False!
weather.py
lahore = 41
karachi = 38
print(lahore > karachi)
print(lahore == karachi)
TeacherGreater than? True! Equal? False!
SanaWhy TWO equals signs?
TeacherOne = stores. Two == compares! And != means not equal!

⏸ Pause & predict: what prints?

print(5 == "5")

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.