In this example we don't see a_int, so this code don't be work
a_int=123
def tmp():
a_int+=2
but why this example work?
a_list=[1,2,3]
def tmp():
a_list.append(4)
As I understood in example 2, a_list is a link, and therefore we have access to it? I'm not sure if my guesses are correct, can you please explain this to me