summaryrefslogtreecommitdiff
path: root/python/problems/re/intnum/sl.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/problems/re/intnum/sl.py')
-rw-r--r--python/problems/re/intnum/sl.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/python/problems/re/intnum/sl.py b/python/problems/re/intnum/sl.py
new file mode 100644
index 0000000..8e4d8a6
--- /dev/null
+++ b/python/problems/re/intnum/sl.py
@@ -0,0 +1,27 @@
+import server
+mod = server.problems.load_language('python', 'sl')
+
+id = 20903
+name = 'Predznačeno celo število'
+
+description = '''\
+<p>
+Napišite funkcijo <code>num(s)</code>, ki vrne prvo celo predznačeno število
+v nizu. Število naj bo tipa int. Če števila v nizu ni, naj funkcija vrne
+<code>None</code>.</p>
+<pre>
+>>> num('Večna pot 113')
+113
+>>> num('a-20=22')
+-20
+</pre>
+'''
+
+plan = []
+
+hint = {
+ 'final_hint': ['''\
+<p>Program je pravilen! <br>
+</p>
+'''],
+}