Examveda

What does the nonlocal keyword do when used in a function?

A. It indicates that a variable is defined in the nearest enclosing scope

B. It defines a new variable

C. It specifies the return type of the function

D. It is used to create a loop

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python