diff options
Diffstat (limited to 'prolog/problems/family_relations')
-rw-r--r-- | prolog/problems/family_relations/sister_2/sl.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/prolog/problems/family_relations/sister_2/sl.py b/prolog/problems/family_relations/sister_2/sl.py new file mode 100644 index 0000000..c867567 --- /dev/null +++ b/prolog/problems/family_relations/sister_2/sl.py @@ -0,0 +1,45 @@ +# coding=utf-8 + +id = 96 +name = 'sister/2' +slug = 'X je sestra od Y' + +description = '''\ +<p><code>sister(X, Y)</code>: <code>X</code> je sestra od <code>Y</code>.</p> +<pre> + ?- sister(vanessa, X). + X = patricia. +</pre>''' + +hint = { + 'general_hint_1': '''\ +<p>Show Fig. #1 here.</p> +''', + + 'general_hint_2': '''\ +<p>Show Fig. #2 here.</p> +''', + + 'general_hint_3': '''\ +<p>Show Fig. #3 here.</p> +''', + + 'x_y_must_be_different': '''\ +<p>Si pomislil, da sta <code>X</code> in <code>Y</code> lahko ista oseba? Poskusi naslednjo poizvedbo:</p> +<pre> +?- sister(sally, Y). +</pre> +''', + + 'x_must_be_female': '''\ +<p>Sestra je navadno ženskega spola.</p> +''', + + 'Y_can_be_of_any_gender': '''\ +<p><code>Y</code> je pravzaprav lahko poljubnega spola.</p> +''', + + 'common_parent_needed': '''\ +<p>Dobro bi bilo, da imata <code>X</code> in <code>Y</code> vsaj enega skupnega starša.</p> +''', +} |