Венцислав обнови решението на 23.03.2015 01:28 (преди над 9 години)
+def extract_type(data, search_type):
+ result = [str(i[0])*i[1] for i in data if type(i[0]) is search_type]
+ return ''.join(result)
+
+
+def reversed_dict(data):
+ reversed_data = {}
+ for key, value in data.items():
+ reversed_data[value] = key
+ return reversed_data
+
+
+def reps(data):
+ return tuple(i for i in data if data.count(i) > 1)