Well done!

You have completed Global and Local Scope Quiz!

Quiz Question 1 of 5

In the following code snippet, which variables have global scope and can be accessed by all functions in the program?

def calculate_area():
  area = width * height
  print("Area:", area)

width = float(input("Enter width: "))
height = float(input("Enter height: "))
calculate_area()

Choose the correct answer below:

Skip Quiz Review Instruction