Python Interview Questions #13

Published: 25 May 2024
on channel: Jobi ai
11
0

Question: What is the purpose of the nonlocal keyword in Python?

Answer: The nonlocal keyword is used in nested functions to indicate that a variable refers to a previously bound variable in the nearest enclosing scope that is not global, allowing the variable to be modified.


On this page of the site you can watch the video online Python Interview Questions #13 with a duration of hours minute second in good quality, which was uploaded by the user Jobi ai 25 May 2024, share the link with friends and acquaintances, this video has already been watched 11 times on youtube and it was liked by 0 viewers. Enjoy your viewing!