Филип обнови решението на 08.03.2014 13:01 (преди над 10 години)
+def wow_such_much(start, end):
+ spisuk = []
+ for i in range(start, end):
+ if i % 3 == 0 and not i % 5 == 0:
+ spisuk.append("such")
+ elif not i % 3 == 0 and i % 5 == 0:
+ spisuk.append("much")
+ elif i % 15 == 0:
+ spisuk.append("suchmuch")
+ else:
+ spisuk.append(str(i))
+
+ return spisuk
+
+def count_doge_words(sentence):
+ bugs = {"wow":1, "lol":1, "so":1, "such":1, "much":1, "very":1}
+ word_sentence = sentence.split()
+ counter = 0
+
+ for i in range (0, len(word_sentence)):
+ counter += bugs.get(word_sentence[i].casefold(), 0)
+
+ return counter