Challenge
The full text of this chapter, to read or revisit. To practise, do the exercises.
▶ Do the exercisesExercise 1 — Field notes: Step 1
Professor Pi is sorting the field notes from the last expedition. The records are a bit messy — some values are missing.
Step 1: return the name, type and power of the Codémons whose type is water or electric.
-- Step 1: water or electricExercise 2 — Field notes: Step 2
Step 2: the Professor wants the "chu" family with a moderate power. Return the name and power of the Codémons whose name ends with "chu" and whose power is between 60 and 80 (inclusive).
-- Step 2: the chu family, power 60-80Exercise 3 — Field notes: Step 3
Step 3: time to flag the incomplete records that can still be used in battle. Return the name, type, level and power of the Codémons that have no type or no level, but whose power is known.
Hint
Group the two "missing" conditions inside parentheses before combining them with the third one.
-- Step 3: incomplete but usable