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

name = 'sister/2'
slug = 'the sister relation'

description = '''\
<p><code>sister(X, Y)</code>: <code>X</code> is a sister of <code>Y</code>.</p>
<pre>
  ?- sister(vanessa, X).
    X = patricia.
</pre>'''

hint = {
    'x_y_must_be_different': '''\
<p>What if <code>X</code> and <code>Y</code> are the same person? Try the
following query:</p>
<pre>
?- sister(sally, Y).
</pre>
''',
}