How to access closed over variables given only the closure function? [duplicate] How to access closed over variables given only the closure function? [duplicate] python-3.x python-3.x

How to access closed over variables given only the closure function? [duplicate]


Below (the code below return 10)

func.__closure__[0].cell_contents