Ангел обнови решението на 06.03.2014 14:17 (преди почти 11 години)
+def wow_such_much(begin, end):
+ list = []
+ for i in range(begin, end):
+ if i % 15 == 0:
+ list.append("suchmuch")
+ continue
+ if i % 5 == 0:
+ list.append("much")
+ continue
+ if i % 3 == 0:
+ list.append("such")
+ continue
+ list.append(str(i))
+ return list
+
+def count_doge_words(string):
+ doge_words = ['wow', 'lol', 'so', 'such', 'much', 'very']
+ counter = 0
+ words_given = string.split()
+ for i in range(0, len(words_given)):
+ if words_given[i] in doge_words:
+ counter += 1
+ return counter