Виктор обнови решението на 23.03.2015 11:37 (преди над 9 години)
+def extract_type(text, type_to_print):
+ to_return = ''
+ for i in text:
+ if type(i[0]) is type_to_print:
+ to_return += i[0]*i[1]
+ return to_return
+
+
+def reversed_dict(dict_to_reverse):
+ dict_to_return = {}
+ for i in dict_to_reverse:
+ dict_to_return[dict_to_reverse[i]] = i
+ return dict_to_return
+
+
+def reps(elements):
+ elements_to_return = []
+ for i in elements:
+ if elements.count(i) > 1:
+ elements_to_return.append(i)
+ return elements_to_return