Момчил обнови решението на 12.03.2014 16:28 (преди над 10 години)
+def count_doge_words(text):
+ DOGE_WORDS = {"wow", "lol", "so", "such", "much", "very"}
+ doge_words_count = 0
+ for word in text.split():
+ if word in DOGE_WORDS:
+ doge_words_count += 1
+ return doge_words_count
+
+
+def wow_such_much(start, end):
+ doge_result = []
+ for number in range(start, end):
+ if number % 15 == 0:
+ doge_result.append('suchmuch')
+ elif number % 3 == 0:
+ doge_result.append('such')
+ elif number % 5 == 0:
+ doge_result.append('much')
+ else:
+ doge_result.append(str(number))
+ return doge_result