def remaining(total, done): return max(0, total - done) print(remaining(4, 1))