From 236001ec7563804f87a40c924681461bc8b2d764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mo=C5=BEina?= Date: Mon, 5 Dec 2016 11:51:58 +0100 Subject: Added a new set of exercises (regular expressions). --- python/problems/re/ones3/sl.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 python/problems/re/ones3/sl.py (limited to 'python/problems/re/ones3/sl.py') diff --git a/python/problems/re/ones3/sl.py b/python/problems/re/ones3/sl.py new file mode 100644 index 0000000..1d571c6 --- /dev/null +++ b/python/problems/re/ones3/sl.py @@ -0,0 +1,24 @@ +import server +mod = server.problems.load_language('python', 'sl') + +id = 20902 +name = 'Ponovitve znaka 3x' + +description = '''\ +

+Napišite funkcijo ones(s), ki vrne seznam vseh podnizov, ki +vsebujejo tri ali več ponovitev znaka 1.

+
+>>> ones('12211222111')
+['111']
+
+''' + +plan = [] + +hint = { + 'final_hint': ['''\ +

Program je pravilen!
+

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