Skip to main content

Interval sweeps · 5 minutes

Count the bookings after a handoff

Get feedback on your answer. No account needed.

What does this Python code print?

active = 4
changes = [-1, -1, 1]
print(active + sum(changes))

Enter the output on one line.

Your answer
Need a small hint?

Each departure frees one room.

This helps us choose when to schedule your next review.