Posts by Bernardo Caldeira de Castro • 1 point
1 post
-
-1
votes1
answer18
viewsQ: I need to read the value of a variable that is local declared in a function, by scoping another function, in Python script
I have a code that is very similar to the following def um(): x = 'abc' print(x) def dois(): y = 'bcd'+ 'x' print(y) It turns out that, like x is local in function um, the function dois can’t read…