Петьо обнови решението на 12.03.2014 02:14 (преди над 10 години)
+def wow_such_much(start, end):
+ such_much_list = list()
+ for x in range(start, end):
+ if x % 15 == 0:
+ such_much_list.append("suchmuch")
+ elif x % 3 == 0:
+ such_much_list.append("such")
+ elif x % 5 == 0:
+ such_much_list.append("much")
+ else:
+ such_much_list.append(x)
+ return such_much_list
+
+
+def count_doge_words(text):
+ words_in_text = text.split()
+ found = 0
+ searched_words = ("wow", "lol", "so", "such", "much", "very")
+ for word in searched_words:
+ found += words_in_text.count(word)
+ return found