summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/grandparent_2/common.py
blob: 1091d52e865fdb0d4018d982bcae9c5608d514b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# coding=utf-8

id = 95
group = 'family_relations'
number = 2
visible = True
facts = 'family_relations'

solution = '''\
grandparent(X, Y) :-
  parent(X, Z),
  parent(Z, Y).
'''