summaryrefslogtreecommitdiff
path: root/python/problems/functions_and_modules/map/sl.py
blob: 18c47fb1aefdba92174278742c8c9181ad5082d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# coding=utf-8
import server
mod = server.problems.load_language('python', 'sl')


id = 245
name = 'Slikaj'
slug = 'Slikaj'


description = '''\
<p>
NapiĊĦite funkcijo <code>map(f, xs)</code>, ki sprejme funkcijo <code>f</code> in seznam <code>[x_1, x_2, ..., x_n]</code>
in vrne nov seznam <code>[f(x_1), f(x_2), ..., f(x_n)]</code>.
<pre>
>>> map(abs, [-5, 8, -3, -1, 3])
[5, 8, 3, 1, 3]
>>> map(len, "Daydream delusion limousine eyelash".split())
[8, 8, 9, 7]
</pre>
</p>'''

plan = ['''\
<p></p>
''',
        '''\
<p></p>''']

hint = {
    'final_hint': ['''\
<p>Program je pravilen! <br>
</p>
'''],
}