From 84f3426c937d1bb9d44ba25a71706416fbb8b85d Mon Sep 17 00:00:00 2001
From: Martin
Date: Fri, 9 Oct 2015 11:17:49 +0200
Subject: Added several new problems.
They have no tests nor hints implemented.
---
python/problems/functions/assign_numbers/sl.py | 34 ++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 python/problems/functions/assign_numbers/sl.py
(limited to 'python/problems/functions/assign_numbers/sl.py')
diff --git a/python/problems/functions/assign_numbers/sl.py b/python/problems/functions/assign_numbers/sl.py
new file mode 100644
index 0000000..97c0c3a
--- /dev/null
+++ b/python/problems/functions/assign_numbers/sl.py
@@ -0,0 +1,34 @@
+# coding=utf-8
+import server
+mod = server.problems.load_language('python', 'sl')
+
+
+id = 225
+name = 'Oštevilči'
+slug = 'Oštevilči'
+
+
+description = '''\
+
+Napišite funkcijo numbers(xs)
, ki vrne seznam oblike [(0, xs[0]), (1, xs[1]), ..., (n, xs[n])]
.
+Število n
je enako dolžini seznama xs
minus ena.
+
+>>> numbers([4, 4, 4])
+[(0, 4), (1, 4), (2, 4)]
+>>> numbers([5, 1, 4, 2, 3])
+[(0, 5), (1, 1), (2, 4), (3, 2), (4, 3)]
+
+
'''
+
+plan = ['''\
+
+''',
+ '''\
+''']
+
+hint = {
+ 'final_hint': ['''\
+Program je pravilen!
+
+'''],
+}
--
cgit v1.2.1