I don't seem to be able to write (pseudo-code): Print X and Y for all X,Y where X==True and Y==True or Y==False
>>> from pyDatalog import pyDatalog
>>> pyDatalog.create_terms('X,Y')
>>> print((X==True)
X
----
True
>>> print((X==True) & (Y==True))
X | Y
-----|-----
True | True
The goal is to write something like:
>>> print((X==True) & ((Y==True) or (Y==False)))
X | Y
-----|-----
True | True
True | False
Instead, this prints out exactly what the previous command returned.
How can I do this?