Python Interview Questions #13

Publicado em: 25 Maio 2024
no canal de: 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.


Nesta página do site você pode assistir ao vídeo on-line Python Interview Questions #13 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jobi ai 25 Maio 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 11 vezes e gostou 0 espectadores. Boa visualização!