def setBoolean(status):
    if status:
        status = False
    else:
        status = True
status = True
setBoolean(status)
I want a button click to set a variable to False if True, and True if False, i.e. the opposite of what it is. How do I do this with the shortest length of code?
 
     
     
     
     
    