Станислав обнови решението на 06.03.2014 00:45 (преди над 10 години)
+def such_much(number):
+ if number % 15 == 0:
+ return 'suchmuch'
+ elif number % 5 == 0:
+ return 'much'
+ elif number % 3 == 0:
+ return 'such'
+ else:
+ return number
+
+
+def wow_such_much(start, end):
+ return list(map(such_much, range(start, end)))
+
+
+def is_parasite(word):
+ return word in {'wow', 'lol', 'so', 'such', 'much', 'very'}
+
+
+def count_doge_words(sentence):
+ return len(list(filter(is_parasite, sentence.split())))