summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/grandparent_2/en.py
blob: 6fdeb700a74f87f1baf06e9b1b28dc2e1629459e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# coding=utf-8

id = 95
name = 'grandparent/2'
slug = 'the grandparent relation'

description = '''\
<p><code>grandparent(P, C)</code>: <code>P</code> is a grandparent of <code>C</code>.</p>
<pre>
  ?- grandparent(tina, X).
    X = vanessa ;
    X = patricia.
  ?- grandparent(tina, vanessa).
    true.
</pre>'''

hint = {}