Ангел обнови решението на 23.03.2015 15:37 (преди над 9 години)
+def extract_type(text, tip):
+ result = ''
+ for k in text:
+ if type(k[0]) == tip:
+ result += str(k[0] * k[1])
+ return result
+
+
+def reversed_dict(dictionary):
+ return {value: key for key, value in dictionary.items()}
+
+
+def reps(numbers):
+ result = []
+ converted_to_list = list(numbers)
+ for number in converted_to_list:
+ if converted_to_list.count(number) != 1:
+ result.append(number)
+ return tuple(result)