Feb-08-2020, 02:54 AM
globals are almost never necessary.
If you feel you need them, rethink your coding
If you feel you need them, rethink your coding
def bind_a_variable(): alist = [] return alist a = bind_a_variable()of course in reality, you would code this simply as:
a = []