summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/memb_2
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/lists/memb_2')
-rw-r--r--prolog/problems/lists/memb_2/en.py12
-rw-r--r--prolog/problems/lists/memb_2/sl.py12
2 files changed, 12 insertions, 12 deletions
diff --git a/prolog/problems/lists/memb_2/en.py b/prolog/problems/lists/memb_2/en.py
index 3fb20d3..2339c5d 100644
--- a/prolog/problems/lists/memb_2/en.py
+++ b/prolog/problems/lists/memb_2/en.py
@@ -6,12 +6,12 @@ slug = 'find elements in list'
description = '''\
<p><code>memb(M, L)</code>: <code>M</code> is an element of list <code>L</code>.</p>
<pre>
- ?- memb(X, [1,2,3]).
- X = 1 ;
- X = 2 ;
- X = 3.
- ?- memb(1, [3,2,X]).
- X = 1.
+?- memb(X, [1,2,3]).
+ X = 1 ;
+ X = 2 ;
+ X = 3.
+?- memb(1, [3,2,X]).
+ X = 1.
</pre>'''
hint = {}
diff --git a/prolog/problems/lists/memb_2/sl.py b/prolog/problems/lists/memb_2/sl.py
index 540394b..382a776 100644
--- a/prolog/problems/lists/memb_2/sl.py
+++ b/prolog/problems/lists/memb_2/sl.py
@@ -6,12 +6,12 @@ slug = 'Preveri (poišči), če je dani element v seznamu'
description = '''\
<p><code>memb(E, L)</code>: <code>E</code> je element seznama <code>L</code>.</p>
<pre>
- ?- memb(X, [1,2,3]).
- X = 1 ;
- X = 2 ;
- X = 3.
- ?- memb(1, [3,2,X]).
- X = 1.
+?- memb(X, [1,2,3]).
+ X = 1 ;
+ X = 2 ;
+ X = 3.
+?- memb(1, [3,2,X]).
+ X = 1.
</pre>'''
hint = {}