Явор обнови решението на 23.03.2015 16:49 (преди над 9 години)
+def extract_type(list_of_symbols, type):
+ result = ''
+ for it in list_of_symbols:
+ if isinstance(it[0], type):
+ for i in range(it[1]):
+ result += str(it[0])
+ return result
+
+
+def reversed_dict(original_dict):
+ result = {}
+ for key, value in original_dict.items():
+ result[value] = key
+ return result