Христо обнови решението на 23.03.2015 15:56 (преди над 9 години)
+def extract_type(archive, type_filter):
+ return ''.join(
+ str(item) * reps for item, reps in archive if type(item) == type_filter
+ )
+
+def reversed_dict(mapping):
+ return {value: key for key, value in mapping.items()}
+
+def reps(items):
+ return tuple(item for item in items if items.count(item) > 1)