Raven writes the crew's morning routine on a long scroll. Wake up, wash face, brush teeth. Check the water, write it down. Check the oats, write it down. Check the fuel, write it down.
"What do you notice?" she asks. Rocket laughs. "Check something, write it down. Three times! That should be a function."
Nova writes check_and_record(item) on a sticky note and sticks it on the scroll. "Now the routine is shorter, and it does the same thing," she says.
def check(item, count):
if count < 5:
return item + " low"
return item + " ok"
print(check("water", 8))
print(check("oats", 3)) Wonderful remixing! Next week is launch day, and you will graduate as a Crew Engineer.