switch_theme.pyw
def switch_01(value):
    """ Switches 0 to 1 and 1 to 0
        :param value: integer, 0 or 1
        :return: integer, 1 or 0
    """
    if value not in (0, 1): raise ValueError('value has to be equal to 0 or 1')
    return 0 if value else 1
 Switches 0 to 1 and 1 to 0
        :param value: integer, 0 or 1
        :return: integer, 1 or 0
    
Switches 0 to 1 and 1 to 0
Switches 0 to 1 and 1 to 0
def switch_01(value):
    if value not in (0, 1): raise ValueError('value has to be equal to 0 or 1')
    return 0 if value else 1
def switch_01 ( value ) : if value not in ( 0 , 1 ) : raise ValueError ( 'value has to be equal to 0 or 1' ) return 0 if value else 1
Switches 0 to 1 and 1 to 0
Switches 0 to 1 and 1 to 0
""" Switches 0 to 1 and 1 to 0
        :param value: integer, 0 or 1
        :return: integer, 1 or 0
    """
integer, 1 or 0
integer 1 or 0
value
integer, 0 or 1
integer 0 or 1