Lowest Level First
Part of the AI Decisions section of Coddy's AI Prompts journey. Lesson 14 of 22.
Your app does not read the level's words. It reads the number and compares it: if heat >= 2: show a warning. That only works when the levels go from lowest to highest.
A recipe app scores A gentle, creamy curry with no chilli at all, perfect for kids. With the levels in a random order:
0 hot ░░░░░░░░░░░░░░░░░░░░ 0%
1 mild ████████████████████ 100%
2 very hot ░░░░░░░░░░░░░░░░░░░░ 0%
3 medium ░░░░░░░░░░░░░░░░░░░░ 0%The AI picks the right words, but at position 1. Lowest first:
0 mild ████████████████████ 100%
1 medium ░░░░░░░░░░░░░░░░░░░░ 0%
2 hot ░░░░░░░░░░░░░░░░░░░░ 0%
3 very hot ░░░░░░░░░░░░░░░░░░░░ 0%Now 0 always means the least and the last level the most, so 2 or more really means hot.
Challenge
MediumA returns desk scores how damaged an item is and sends a replacement when the score is 2 or more. The levels are in a random order, so the numbers make no sense.
Put the four levels in order, from no damage to broken.
This lesson includes a short quiz. Start the lesson to answer it and track your progress.