Well done!

You have completed Control Flow and Functions Quiz!

Quiz Question 1 of 5

Given the following Python code:

def outer_function():
  x = 10
  def inner_function():
    nonlocal x
    x += 5
    print(x)
  inner_function()
  print(x)

outer_function()

What will be the output when outer_function() is called?

Choose the correct answer below:

Skip Quiz Review Instruction