Стилиян обнови решението на 23.03.2015 03:21 (преди над 9 години)
+def reversed_dict(some_dict):
+ inversed_dict = {value: key for key, value in some_dict.items()}
+ return inversed_dict
+
+
+def reps(numbers):
+ only_repeteaed = [num for num in numbers if numbers.count(num) > 1]
+ return tuple(only_repeteaed)
+
+
+def extract_type(zipped_text, needed_type):
+ extracted_symbols = ""
+ for symbol in zipped_text:
+ if(type(symbol[0]) is needed_type):
+ for i in range(symbol[1]):
+ extracted_symbols += str(symbol[0])
+ return extracted_symbols