How do I send values from python into a prolog read statement?

42 views
Skip to first unread message

xp_prg

unread,
Dec 4, 2009, 12:50:43 AM12/4/09
to pyswip
Hi All,

Lets say I have this kind of a prolog program:

test(X,R):- read(X), R=X, !.

The prolog program is trying to read in a value for X. How can I send
it a value?

-Tim
Reply all
Reply to author
Forward
0 new messages