expert-system/Ft_op.py

15 lines
215 B
Python

class Ft_op:
# def __init__ (self):
def ft_and(a, b):
return a & b
def ft_or(a, b):
return a | b
def ft_xor(a, b):
return a ^ b
def ft_not(a, b):
return not a