A fork in the road with a sign at each branch - a program that walks down the first branch whose sign matches can feel 'smart' without actually understanding anything, just by having good signs.
AI stands for Artificial Intelligence. It's a computer program that seems 'smart' - it picks answers or makes decisions all by itself. Big AI, like voice assistants, learns by studying huge piles of examples. But the AI we're building is simpler: it's just good rules, using if/elif/else, that help it react the right way. That's exactly where we're starting!
if condition:
...
elif condition:
...
else:
...temperature = 95
if temperature > 85:
print("It's a scorcher! Stay hydrated.")
elif temperature > 60:
print("Nice weather for a walk.")
else:
print("Bundle up, it's chilly!")This tiny program reacts 'smartly' to whatever temperature you give it, picking one of three responses - it FEELS like it understands weather, but it's really just three well-chosen rules checked in order.
mood = "tired"
if mood == "tired":
print("Maybe take a short nap!")
elif mood == "excited":
print("Great, let's go do something fun!")
else:
print("Tell me more about how you're feeling.")Same idea, different topic - a 'mood advisor' that reacts sensibly to a handful of known moods, and has a reasonable fallback for anything else.
In the app this lesson continues with the animated explanation, spoken aloud, and then the practice: Build a simple AI weather advisor for temperature = 40: print "It's a scorcher! Stay hydrated." if over 85, "Nice weather for a walk." if over 60, otherwise "Bundle up, it's chilly!" The editor runs your child’s real code and checks the result, with their coding buddy reacting to what they wrote.
Try it free