Three empty boxes sit in the cargo bay, labeled empty, low and full. Raven hands Rocket a stack of supply cards with numbers on them.
"Sort them," she says. "But first, what do you notice? We need a rule, and we need to ask the questions in the right order."
Rocket grins. "If it is zero, it goes in empty. Elif it is under five, low. Else, full!" Nova does a happy spin. "You just spoke Python," she says.
cards = [0, 7, 3, 12, 5]
full = 0
for c in cards:
if c == 0:
print("empty")
elif c < 5:
print("low")
else:
full = full + 1
print("Full cards:", full) Brilliant sorting! Next week, you will zoom in on strings, letter by letter.