Димитър обнови решението на 07.03.2014 12:12 (преди над 10 години)
+def wow_such_much(start, end):
+ """wow_such_much(start, end) -> list"""
+ result = []
+ for num in range(start, end):
+ element = ''
+ if num % 3 == 0:
+ element += 'such'
+ if num % 5 == 0:
+ element += 'much'
+ if element == '':
+ element += str(num)
+ result.append(element)
+ return result
+
+def count_doge_words( sentence ):
+ """remove parasite words from sentence"""
+ words = ('wow', 'lol', 'so', 'such', 'much', 'very')
+ counter = 0
+ for word in sentence.split(' '):
+ if word in words:
+ counter += 1
+ return counter