Same code will work in JS, but in python it will not change variable, how do you change variables in nested functions? Thanks in advance and sorry for noob question
   def sample():
       a = False
       def sample2():
           a = True
       sample2()
       return a
 
     
     
    