Created
February 14, 2015 06:11
-
-
Save rosskarchner/29c83e8359753388e25b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def conjunction(left_conjunct,right_conjunct): | |
return bool(left_conjunct and right_conjunct) | |
def disjunction(left_disjunct,right_disjunct): | |
return bool(left_disjunct or right_disjunct) | |
def negation(a): | |
return not(a) | |
def implication(antecedent, consequent): | |
if consequent: | |
return True | |
elif not(antecedent) and not(consequent): | |
return True | |
else: | |
return False | |
def biconditional(left_bicomponent,right_bicomponent): | |
return bool(left_bicomponent) == bool(right_bicomponent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment