From 12378810ee9207536bfa0c264c1bf2a2b0296171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mo=C5=BEina?= Date: Wed, 24 Aug 2016 15:32:22 +0200 Subject: Added several new exercises for Python (related to dictionaries and sets). --- python/problems/dictionaries/most_frequent/sl.py | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 python/problems/dictionaries/most_frequent/sl.py (limited to 'python/problems/dictionaries/most_frequent/sl.py') diff --git a/python/problems/dictionaries/most_frequent/sl.py b/python/problems/dictionaries/most_frequent/sl.py new file mode 100644 index 0000000..c877e20 --- /dev/null +++ b/python/problems/dictionaries/most_frequent/sl.py @@ -0,0 +1,30 @@ +import server +mod = server.problems.load_language('python', 'sl') + + +id = 20604 +name = 'Najpogostejše' + +description = '''\ +

+Napišite funkcijo most_frequent(s), ki vrne besedo in znak, +ki se v podanem nizu največkrat pojavita. V nizu +'in to in ono in to smo mi' se največkrat pojavita beseda +'in' in znak ' ' (presledek). +

+>>> most_frequent('aa bb aa')
+('aa', 'a')
+>>> most_frequent('in to in ono in to smo mi')
+('in', ' ')
+
+

+''' + +plan = [] + +hint = { + 'final_hint': ['''\ +

Program je pravilen!
+

+'''], +} -- cgit v1.2.1