PySwipPySwip
Home
What's New?
Community
Documentation
Source
Home
What's New?
Community
Documentation
Source
  • Examples

Examples

Basics

Hello, World!

from pyswip import Prolog
p = Prolog()
p.assertz("foo(bar, zoo)")

Prolog:

foo(bar, zoo).
parent(X, Y) :-
    child(Y, X).
Last Updated: 10/10/24, 8:41 PM
Contributors: Yuce Tekol