Беатрис обнови решението на 07.03.2014 23:17 (преди над 10 години)
+def wow_such_much(start, end):
+ result = []
+ for i in range(1, 16):
+ if i % 3 == 0:
+ if i % 5 == 0:
+ result.append('suchmuch')
+ else:
+ result.append('such')
+ elif i % 5 == 0:
+ result.append('much')
+ else:
+ result.append(str(i))
+ return result
+
+
+def count_doge_words(text):
+ words = text.split()
+ bad_words = ['wow', 'lol', 'so', 'much', 'such', 'very']
+ result = 0
+ for word in words:
+ for bad_word in bad_words:
+ if word == bad_word:
+ result += 1
+ return result