Return behavior for a later call

A game needs make_adjustment(delta) to return a reusable function that adds delta to a score supplied later. The final outer return statement is missing from this Python code:


Python
def make_adjustment(delta):
    def adjust(score):
        return score + delta
    # The outer return statement belongs here.


Complete that statement by supplying only the function's identifier: return .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Higher-Order Functions Questions: