how to make a boolean variable be the opposite python code example Example: set boolean to opposite python go = True go = not go # go is now False