Preguntas con la etiqueta [python-nonlocal]

Lista python-nonlocal preguntas

Considere este ejemplo: def A(): b = 1 def B(): # I can access 'b' from here. print(b) # But can i modify 'b' here? B() A() Para el código