summaryrefslogtreecommitdiff
path: root/python/problems/dictionaries/most_frequent/sl.py
blob: c877e2085bc87b9e771bfbafd8067309b1910b3d (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
import server
mod = server.problems.load_language('python', 'sl')


id = 20604
name = 'Najpogostejše'

description = '''\
<p>
Napišite funkcijo <code>most_frequent(s)</code>, ki vrne besedo in znak,
ki se v podanem nizu največkrat pojavita. V nizu
<code>'in to in ono in to smo mi'</code> se največkrat pojavita beseda
<code>'in'</code> in znak <code>' '</code> (presledek).
<pre>
>>> most_frequent('aa bb aa')
('aa', 'a')
>>> most_frequent('in to in ono in to smo mi')
('in', ' ')
</pre>
</p>
'''

plan = []

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