Цветелина обнови решението на 06.03.2014 01:07 (преди над 10 години)
+def wow_such_much(start, end):
+ result = []
+
+ for number in range(start, end):
+ result.append(number_to_doge(number))
+
+ return result
+
+def number_to_doge(number):
+ result = ''
+
+ if number % 3 == 0:
+ result = 'such'
+ if number % 5 == 0:
+ result += 'much'
+ if result == '':
+ result = str(number)
+
+ return result
+
+def count_doge_words(doge_sentence):
+ doge_words = ['wow', 'lol', 'so', 'such', 'much', 'very']
+ doge_list = doge_sentence.split(' ')
+ count = 0
+
+ for word in doge_words:
+ count += doge_list.count(word)
+
+ return count