utils/int_conversions.py
def logical_not(s):
    """
    Return the logical negation of the given binary string
    :param s: the string to convert
    :type s: str
    :return: str
    """
    ns = ''
    for c in s:
        if c == '0':
            ns += '1'
        elif c == '1':
            ns += '0'
        else:
            raise Exception("Invalid binary string")
    return ns

    Return the logical negation of the given binary string
    :param s: the string to convert
    :type s: str
    :return: str
    
Return the logical negation of the given binary string
Return the logical negation of the given binary string
def logical_not(s):
    ns = ''
    for c in s:
        if c == '0':
            ns += '1'
        elif c == '1':
            ns += '0'
        else:
            raise Exception("Invalid binary string")
    return ns
def logical_not ( s ) : ns = '' for c in s : if c == '0' : ns += '1' elif c == '1' : ns += '0' else : raise Exception ( "Invalid binary string" ) return ns
Return the logical negation of the given binary string
Return the logical negation of the given binary string
"""
    Return the logical negation of the given binary string
    :param s: the string to convert
    :type s: str
    :return: str
    """
None
s
the string to convert
the string to convert