summaryrefslogtreecommitdiff
path: root/python/problems/functions_and_modules/caesar_cipher/sl.py
diff options
context:
space:
mode:
authorMartin <martin@leo.fri1.uni-lj.si>2015-10-09 11:17:49 +0200
committerMartin <martin@leo.fri1.uni-lj.si>2015-10-09 11:17:49 +0200
commit84f3426c937d1bb9d44ba25a71706416fbb8b85d (patch)
tree84b064c8150b6bbd3422fb2c91c6121e0a01902c /python/problems/functions_and_modules/caesar_cipher/sl.py
parent45474b5c8cefa916aeb64e1c15a79f647a86d58c (diff)
Added several new problems.
They have no tests nor hints implemented.
Diffstat (limited to 'python/problems/functions_and_modules/caesar_cipher/sl.py')
-rw-r--r--python/problems/functions_and_modules/caesar_cipher/sl.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/python/problems/functions_and_modules/caesar_cipher/sl.py b/python/problems/functions_and_modules/caesar_cipher/sl.py
new file mode 100644
index 0000000..ea4d9c8
--- /dev/null
+++ b/python/problems/functions_and_modules/caesar_cipher/sl.py
@@ -0,0 +1,35 @@
+# coding=utf-8
+import server
+mod = server.problems.load_language('python', 'sl')
+
+
+id = 243
+name = 'Cezarjeva šifra'
+slug = 'Cezarjeva šifra'
+
+
+description = '''\
+<p>
+Napišite funkcijo <code>caesar(s)</code>, ki podan niz zašifrira z uporabo <a href="http://sl.wikipedia.org/wiki/Cezarjeva_%C5%A1ifra">cezarjeve šifre</a>.
+Preden se lotite naloge, se je morda vredno pozanimati kaj počneta funkciji
+<a href="https://docs.python.org/3.5/library/functions.html#ord">ord</a> in
+<a href="https://docs.python.org/3.5/library/functions.html#chr">chr</a>.
+Predpostavite lahko, da niz <code>s</code> vsebuje le male črke angleške besede in presledke.
+<pre>
+>>> caesar('the quick brown fox jumps over the lazy dog')
+'wkh txlfn eurzq ira mxpsv ryhu wkh odcb grj'
+</pre>
+</p>'''
+
+plan = ['''\
+<p></p>
+''',
+ '''\
+<p></p>''']
+
+hint = {
+ 'final_hint': ['''\
+<p>Program je pravilen! <br>
+</p>
+'''],
+}