I'm trying do the follow sentence:
¬ = lambda x: not x
but I'm getting the follow error:
File "<stdin>", line 1
¬ = lambda x: not x
^
SyntaxError: invalid character in identifier
Ok, I know that is an invalid sentence in Python, but I'm looking for a solution that allows me to use this syntax.
My target is create a script to run Propositional Logic Easily, and if I can do it, I'm be able to do some things with sugar syntax like as below:
¬ False
>>>True