On 2024-02-25 00:33, Steve GS via Python-list wrote:
"Well, yes, in Python a
variable created inside a
function or method is local to
that function unless you
declare it global."

Yes, I knew that. I tried to
global it both before the
function call and within it.
Same for when I created the
variable. If I try to use it
in the rest of the code, it
keeps coming up as not
declared.  In other functions,
I can 'return' the variable
but that apparently would not
work for this function.

Is this type of function any
different that that which I
have been using?

Please post a short example that shows the problem.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to