summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/grandparent_2/en.py
blob: e3f3c22ab6c46a50778a995f782be75ab1f348ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 = {}