Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I HER U LYKE XNOR

Name: Anonymous 2009-01-09 3:20

hai guys, because I love you so much I made you a present:


def OR(a,b):
    """ Returns A + B
    """
    x = bool(a) or bool(b)
    return x

def AND(a,b):
    """ Returns A.B
    """
    x = bool(a) and bool(b)
    return x

def XOR(a,b):
    """ Returns A(XOR)B
    """
    if bool(a) and bool(b):
        x = False
    else:
        x = bool(a) or bool(b)
    return x

def INV(a):
    """ Returns -A
    """
    return XOR(a, True)

def NAND(a,b):
    """ Returns -(A.B)
    """
    return INV(AND(a,b))

def NOR(a,b):
    """ Returns -(A + B)
    """
    return INV(OR(a,b))

def XNOR(a,b):
    """ Returns -(A(XOR)B)
    """
    return INV(XOR(a,b))

Name: Anonymous 2009-01-09 15:07

>>47
but they exist for as long as there are genders. Do you have an explanation to why we shouldn't use these concepts?
It would be limiting to not have the concept for water for example.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List