ex27.py boolean tables